Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: _PAGENO incremented with TEXT ENDTEXT
Message
From
22/10/2003 22:30:44
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
BUG: _PAGENO incremented with TEXT ENDTEXT
Miscellaneous
Thread ID:
00841414
Message ID:
00841414
Views:
56
TEXT ENDTEXT causes the _PAGENO variable to be incremented. Here's the repo code:
CLEAR
_PAGENO = 1
HoldPage = _PAGENO
 
FOR x = 1 TO 129
   TEXT TO m.myVar NOSHOW
      "Hello World"
   ENDTEXT
   IF _PAGENO <> m.HoldPage
      HoldPage = _PAGENO
      ? 'x = ' + TRANSFORM(m.x) + " and _PAGENO = " + TRANSFORM(_PAGENO)
   ENDIF
ENDFOR
? _PAGENO
For me, running this in VFP 7 or 8 causes the _PAGENO variable to increment to 3. If I'm missing something, please let me know.
Charlie
Next
Reply
Map
View

Click here to load this message in the networking platform