I don't see any difference in the evaluation. If anything, I would set a variable to Char(32) and test that in the While like:

set var vSpc text = (Char(32))

WHILE (SGET(.vnote,1,.vsloc)) <> .vSpc THEN


If there is still no joy, then I would test the source .vNote to see exactly what the ASCII character is that purports to be a space.



----- Original Message ----- From: "Emmitt Dove" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Wednesday, December 22, 2010 6:58 AM
Subject: [RBASE-L] - re: evaluation problem


Luc,



Try this structure:



While 1 = 1 THEN

 .. do whatever

 SET VAR vx = (SGET(.vnote,1,.vsloc))

 IF vx = (CHAR(32)) THEN

   BREAK

 ENDIF

 .. do whatever else

ENDWHILE



Emmitt Dove

Converting Systems Architect

Evergreen Packaging, Inc.

[email protected]

(203) 214-5683 m

(203) 643-8022 o

(203) 643-8086 f

[email protected]



From: [email protected] [mailto:[email protected]] On Behalf Of Luc
Delcoigne
Sent: Wednesday, December 22, 2010 05:44
To: RBASE-L Mailing List
Subject: [RBASE-L] - re: evaluation problem



Hi,



in a code I run this line :



WHILE (SGET(.vnote,1,.vsloc)) <> (CHAR(32)) THEN

....



Endwhile



This is supposed to check if the SGET-var is a space or not.

The problem is that the WHILE-loop continues to run even when th SGET-var is
a space.

So the evaluation does not work correctly.



What am I overlooking ?



Luc Delcoigne



--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to