Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variables Disappearing
Message
De
30/11/2012 13:23:36
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
30/11/2012 12:41:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01558475
Message ID:
01558482
Vues:
49
>I actually declared the variables within the loop, and that did the trick.
>>
>>Have you tried defining these variables as private before the loop? I think I did see similar problems before and you can either use private variables or form's properties if the first idea will not work.

weiltemp.prg
LOCAL lcuid, lcsurname,lnRec
USE members
SCAN
lcuid = uid
lcsurname = surname
lnrec=RECNO()
REPORT FORM weiltemp NEXT 1 PREVIEW
SET STEP ON
GO m.lnrec
ENDSCAN

The variables are not disappearing at the SET STEP ON, nor anywhere else. I declared them LOCAL before the loop and populated them in the loop.

I'd want to know why it fails, if I were you.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform