string search

Ace Master

Well-known member
Joined
Aug 28, 2003
Messages
140
Hi.

I know how to find a char in my string but I dont know how to make this:

I receive a string , and in that string I want to know if the last char is ">" or "?" ..and to make decisions.

How I make to see the last char in string ?

thanks
 
Thanks...

In the same way as I know the last char ....it is some way to find the char in front of him ???? something like :

myString.EndsWith-1("X")

it is possible ?

thanks
 
thanks.

one more thing ....

I have 2 functions.

public sub function1 ()

code 1...
check in function2
code2....

end sub


public sub function2 ()

if a>b then
code2 line
end if

end sub


basicaly I want to read the code 1 in F1 and after that to check the if in F2 and if its true to continue with code 2 in F1.


I have a serial connection. I send a command for receiving the info but I dont want to send the next command until the receiving for the first one is done. I realy dont know how to do this in other way :(

thanks
 
Code:
public sub function1 ()

  code 1...
if function2() then  
  code2....
end if
end sub


public function function2 () as boolean

if a>b then
     return true
else
     return false
end if
end function

something like this ? I just threw it...might got typos...
 
Last edited by a moderator:
Back
Top