Mike,

that is exactly what I've done today.

It seems that the expression is correct BUT the variable in the SGET was
defined as TEXT.
I've tried it with the var set as NOTE and all works well...

Strange.....very strange.....

Thanks, guys !

Luc D.
----- Original Message ----- 
From: "Mike Byerley" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Wednesday, December 22, 2010 3:58 PM
Subject: [RBASE-L] - re: evaluation problem


> 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
> >
> >
>
>
>


Reply via email to