Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property mysteriously changes its value
Message
 
À
10/01/2007 14:10:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01184314
Message ID:
01184332
Vues:
20
>I have a form's property that gets wrongly changed and I can't find where. How can I use Assign method do trace the unwanted change?
>
>Thanks
#define CRLF CHR(13)+CHR(10)

****MyProperty_Assign method: 
LPARAMETERS tAssign  
LOCAL aStck[1]
ASTACKINFO(aStck)
lcStr = CRLF+[New value ] + TRANSFORM(tAssign)
FOR lnFor = 1 TO ALEN(aStck,1)
    lcStr  = lcStr + CRLF +;
             [Stack Level     ] + TRANSFORM(aStck[lnFor,1])+CRLF+;
             [Current program ] + TRANSFORM(aStck[lnFor,2])+CRLF+;
             [Object          ] + TRANSFORM(aStck[lnFor,3])+CRLF+;
             [Object source   ] + TRANSFORM(aStck[lnFor,4])+CRLF+;
             [Line number     ] + TRANSFORM(aStck[lnFor,5])+CRLF+;
             [in the source   ] + TRANSFORM(aStck[lnFor,6])
NEXT
STRTOFILE(lcStr, [c:\TestLog.log], 1)
(not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform