Is there any way to check the LAST value in an edit box?
i.e.
SCAR Code:EditBox.Text := 'ohai der';
if(Edit.Box.text[7] = 'r')then
I hope that explains it enough.
Is there any way to check the LAST value in an edit box?
i.e.
SCAR Code:EditBox.Text := 'ohai der';
if(Edit.Box.text[7] = 'r')then
I hope that explains it enough.
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
oo i gotcha
length(edit.text);
that or high(edit.text);
?
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
function copy(s: string; ifrom, icount: LongInt): string;
Returns part of the string (Copy('abcde',2,3) would return 'bcd'.Maybe that will helpfunction Length(s: string): LongInt;
Returns string length in characters.
SL := Length(Edit.Text);
Copy(Edit.Text, SL-1, SL);
Not 100% sure tho.
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
SCAR Code:var
a: string;
b: integer;
begin
a := 'ohai';
b := length(a);
writeln(a[b]);
end.
that ^^
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
Yea or that :P Lol
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
or this:
Code:program New; var s: string; i: Integer; begin s := 'Hello There' i := Length(S) Writeln(Copy(s, i, 1)) ; end.
Scripts: AIOCurser !, Tea Stall Thiever !, Flax Picker !
Other: Objective Functions, Scarduku
Tutorials: How to create a plugin for Simba, [VB.NET] Using My.Settings, [Photoshop] Basic Abstract Art
Outdated: m!ne v1.00 [STATS]
Or this:
SCAR Code:program New;
var
s: string;
begin
s := 'Hello There';
Writeln(S[Length(S)]) ;
end.
~Sand
There are currently 1 users browsing this thread. (0 members and 1 guests)