purerange86
2015-02-18 17:44:23
Is there a function to delete a specific index in an array in general?
for example I have the string
and i want to make it
For the purposes of this, is there a function that tells you whether a char is an integer or not?
What I have so far:
Thanks!
for example I have the string
'1 1 1'and i want to make it
'111'For the purposes of this, is there a function that tells you whether a char is an integer or not?
What I have so far:
Procedure StringNoSpaces(var S:String);
var
i:integer
begin
for i := high(string) downto low(string) do begin
if (string[i] = ' ') then //deletevalueinstring(s, i) <--how are you supposed to do this
//what I really want is:
//if Not IsInteger(string[i]) then deletevalueinstring(s,i)
//but no clue what functions to use
end;
end;
Thanks!