Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: REPLACE WHILE .value interpreted badly
Message
From
02/12/2004 04:39:54
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00966108
Message ID:
00966287
Views:
12
>Fabio,
>
>I basically disagree with your bug assesment, The help file lists this as the correct ordering of the command clauses:
>
>
>REPLACE FieldName1 WITH eExpression1 [ADDITIVE]
>   [, FieldName2 WITH eExpression2 [ADDITIVE]] ... [Scope]
>   [FOR lExpression1] [WHILE lExpression2] [IN nWorkArea | cTableAlias]
>
>
>These all work without error.
>
>
>REPLACE FF WITH 1 WHILE .T.
>REPLACE FF WITH 1 WHILE .NULL.
>REPLACE FF WITH 1 WHILE .F.
>
>

You expand the vision.
CREATE CURSOR bugwhile (ff i,XX I)
* BUG 1
x=CREATEOBJECT("CONTROL")
X.ADDPROPERTY("Y",CREATEOBJECT("EMPTY"))
ADDPROPERTY(X.Y,"Z")
WITH m.x
	REPLACE FF WITH 1 WHILE (.Y.Z)
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform