Are they also both text or both integer?

 

Gunnar Ekblad

Kontema IT AB

Hästholmsvägen 32

131 30 Nacka

Sweden

 

-----Ursprungligt meddelande-----
Från: [email protected] [mailto:[email protected]] För Jim Belisle
Skickat: den 14 oktober 2009 17:53
Till: RBASE-L Mailing List
Ämne: [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