Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property mysteriously changes its value
Message
 
To
10/01/2007 14:10:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01184314
Message ID:
01184332
Views:
19
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform