XcanadamanX
2007-03-04 11:16:38
im trying to get a person's name from the chat without the ":" this iswhat i tried but i seem to keep getting a type mismatch
here is the command im using to delete the :
any ideas? i see that it says procedure instead of function but it says it returns a string:confused:
OldLine := TheLine;
Name := lowercase(trim(GetTextAtEx(20, 415, 45, SmallChars, False, False, 0, 2, 0, 40, True, tr_NormalChars)));
NameL := Length(Name)
writeln(inttostr(namel))
//TheName := Delete(Name,(NameL-1),NameL)
TheLine := lowercase(trim(GetTextAtEx(20, 415, 45, SmallChars, False, False, 0, 2, 16711680, 40, False, tr_NormalChars)));
NewLine := TheLine;
//writeln(TheName)here is the command im using to delete the :
procedure delete(var s: string; ifrom, icount: Longint): string; - delete part of string.any ideas? i see that it says procedure instead of function but it says it returns a string:confused: