wavejunkie
Programmer
I am trying to write a simple function that will return the first space character in a line of taxt. If the text does not contain a space character then the value 0 is returned.
My code so far is as follows:
int FirstSpace(String Line)
{
int Index;
for(Index = 1; Index <= Length(Line))
{
if(Line[Index] == 32)
(
WriteIntCr(FirstSpace(String Line));
else
{
WriteIntCr(0);
}
}
Hope you can help
thanks
wavejunkie
My code so far is as follows:
int FirstSpace(String Line)
{
int Index;
for(Index = 1; Index <= Length(Line))
{
if(Line[Index] == 32)
(
WriteIntCr(FirstSpace(String Line));
else
{
WriteIntCr(0);
}
}
Hope you can help
thanks
wavejunkie