PBP does not have such string compring capabilities.
You have to make your own subroutine to compare byte to byte the two string array. Like that:
i=0
while i less_than gsmbuffer_length (I cant sen the less character! Why?)
if gsmbuffer[i]=compare_array[i] then
'gsmbuffer[i]=0
i=i+1
else
goto wrong_sms
endif
wend
correct_sms:
'your code here
wrong_sms:
'your code here
You understand that in compare_array you have to put your characters in some other place of the program prior to the above subroutine.
Bookmarks