bud_wis_er_420
2012-01-03 18:51:37
How do I do this below
and would print out this: 'Text'
text := Upper('text');
writeln(text);
and would print out this: 'Text'
2012-01-03 18:51:37
text := Upper('text');
writeln(text);
2012-01-03 18:52:34
Writeln('The UpText is: ' + GetUpText);Should do it I think!]2012-01-03 18:56:28
From: YoHoJo
Should do it I think!]Writeln('The UpText is: ' + GetUpText);
OOPS ROFL! NEVER MIND!
Try UpperCase instead of Upper
2012-01-03 19:27:30
program new;
{$I SRL/SRL.Simba}
Function FLU(str: String): String;
begin
Str[1]:= UpperCase(Str[1])[1]
Result:= Str;
end;
begin
Flu('dfsgs');
end.
2012-01-03 19:31:31
2012-01-03 19:50:23
program new;
var
text: string;
begin
text := 'hello';
writeln(Capitalize(text));
end.
2012-01-03 20:15:18
program new;
var
text,Captext,Lowertext,Alltext: TStringArray;
next: integer;
begin
text := ['hello', 'bot', 'sup']
Captext := Capitalize(text);
Lowertext := Lowercase(text);
Alltext := Captext + Lowertext
For next := 0 to high(Alltext) do
begin
writeln(Alltext[next]));
end;
end.
2012-01-03 20:16:31
2012-01-03 20:20:24
2012-01-03 20:21:15
2012-01-03 20:25:05
program new;
var
text,Captext,Lowertext,Alltext: TStringArray;
next: integer;
begin
text := ['hello', 'bot', 'sup']
SetLength(Captext, high(text));
for next := 0 to high(text) do
Captext[next] := Capitalize(text[next]);
//Lowertext := Lowercase(text);
//Alltext := Captext + Lowertext
for next := 0 to high(Captext) do
begin
writeln(Captext[next]);
end;
end.
2012-01-03 20:48:32
From: bud_wis_er_420
This what I came up with, but it's not working.
ok this what I have now but it still not working
program new;
var
text,Captext,Lowertext,Alltext: TStringArray;
next: integer;
begin
text := ['hello', 'bot', 'sup']
[B]SetLength(Captext, length(text)[/B]);
for next := 0 to high(text) do
Captext[next] := Capitalize(text[next]);
//Lowertext := Lowercase(text);
//Alltext := Captext + Lowertext
for next := 0 to high(Captext) do
begin
writeln(Captext[next]);
end;
end.
2012-01-03 21:02:31