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, likeThen, once you have the command IN the array you can, for example, do something likeCode:command VAR BYTE [2]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.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
/Henrik.
Bookmarks