Hi,
PBP doesn't have a string type variable per se but it does have array type variable which is pretty much the same thing.
If all your commands are two character command then declare a 2 byte array, like
Code:
command VAR BYTE [2]
Then, once you have the command IN the array you can, for example, do something like
Code:
IF command[0] = "G" AND command[1] = "C" THEN
' Do Whatever
ENDIF
IF command[0] = "G" AND command[1] = "Q" THEN
' Do Whatever
ENDIF
This is a pretty straight forward way, depending on the number of different commands there might be "cleaner" and/or more efficient ways of doing it.
/Henrik.
Bookmarks