How do I do this below
Simba Code:text := Upper('text');
writeln(text);
and would print out this: 'Text'
How do I do this below
Simba Code:text := Upper('text');
writeln(text);
and would print out this: 'Text'
Should do it I think!]Simba Code:Writeln('The UpText is: ' + GetUpText);
OOPS ROFL! NEVER MIND!
Try UpperCase instead of Upper
Simba Code: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.
I am Ggzz..
Hackintosher
Isn't there a Capitalize function? I could swear we had one.
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
ok I see
Simba Code:program new;
var
text: string;
begin
text := 'hello';
writeln(Capitalize(text));
end.
Last edited by bud_wis_er_420; 01-04-2012 at 12:57 AM.
what am I doing wrong here?
[Error] (11:30): Type mismatch at line 10
Compiling failed.
Simba Code: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.
Last edited by bud_wis_er_420; 01-04-2012 at 01:18 AM.
Need to do Capitalize(text[x]), and the same for the others.
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
I need to loop it though, huh?
Yup![]()
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
This what I came up with, but it's not working.
ok this what I have now but it still not working
Simba Code: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.
Last edited by bud_wis_er_420; 01-04-2012 at 01:31 AM.
Thx
There are currently 1 users browsing this thread. (0 members and 1 guests)