SRL Archive - General

Simba Help!


renttt

2012-07-03 12:14:02

Hello,
I am currently making a bot right now using the program simba and it is almost complete, accept i just have to figure out how to get the length of a string. Please help thanks :spongebob:

Based Lord

2012-07-03 12:21:22

Try this

Begin
WriteLn(IntToStr(Length('the length of this is...')));
end.

Found it here

renttt

2012-07-03 20:09:03

Im looking to determine the length of the string that i already have.

Rent

2012-11-17 07:17:45

+rep for similar names :D

The Killer

2012-11-17 07:24:17

From: renttt
Im looking to determine the length of the string that i already have.


make it a variable.
e.g

Begin
WriteLn(IntToStr(Length(variablename)));
end.

Echo_

2012-11-17 19:48:45

Don't even need IntToStr:

var
S: string;
begin
S := 'Hello, World!';
WriteLn(Length(S));
end.

Rezozo

2012-11-17 19:52:52

From: Echo_
Don't even need IntToStr:

var
S: string;
begin
S := 'Hello, World!';
WriteLn(Length(S));
end.


I second this, no need for IntToStr in this case.