Are they both TEXT?
No leading or trailing spaces?
Misspelling? Try RSTYLE.

Dennis

________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Jim Belisle
Sent: Wednesday, October 14, 2009 10:53 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - SGET

I am attempting to use the SGET function to get 2 letters of a string.
SET VAR vSgetState = (SGET(.vControl,2,7))
I then use this information to compare to a ship state in another field.
The purpose is to make sure the ship state and those two letters are the same.

Here is the On Table Exit EEP I use:

IF vShipState <> vSgetState THEN
   PAUSE 2 USING 'Shipstate & C# State must be the same!' CAPTION '  New Order 
' ICON STOP
   SKIP TO vShipstate
   RETURN
ENDIF

The problem is that the pause command is popping up even when the variables are 
equal.
I checked the watch variables and both vShipstate and vSgetState are equal.

Jim

Reply via email to