Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: _PAGENO incremented with TEXT ENDTEXT
Message
De
22/10/2003 22:30:44
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
BUG: _PAGENO incremented with TEXT ENDTEXT
Divers
Thread ID:
00841414
Message ID:
00841414
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform