Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LIST STATUS or SAVE TO or Something Else
Message
From
08/01/2009 22:35:58
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01372225
Message ID:
01372240
Views:
17
>>>>I'm trying to get a readable status of memory variables at a certain point in a program. SAVE TO is hard to read, and actually didn't seem to contain values for some variables I know had value. LIST STATUS did not have memory variables from the program, just system stuff. What else can I use other than having to output each variable manually in the code I might be interested in?
>>>
>>>There was a Downloads here if memory serves.
>>>
>>>Could not find it, found only this LocalVar Parser Download #26287
>>>
>>>I think I had something in my library collection, let me check.
>>
>>During runtime. Not parsing the PRG itself. I want to know the values of variables at that point in code.
>
>This is what I have, not exactly bullet-proof, assuming good naming convention:
>
>************************************************************
>*  FUNCTION GetLocalVars()
>************************************************************
>*) Description.......: Returns string with all local variables (variables starting with l)
>*  Calling Samples...:
>*  Parameter List....:
>*  Major change list.:
>FUNCTION GetLocalVars()
>LOCAL lcVars
>DISPLAY MEMORY LIKE l* TO FILE 'Variables.txt' NOCONSOLE && assuming the local vars always start with l
>lcVars = FILETOSTR('Variables.txt')
>ERASE ('Variables.txt')
>*!*	IF NOT 'foxtools.fll' $ LOWER(SET('library'))
>*!*		SET LIBRARY TO foxtools.fll additive
>*!*	ENDIF
>*!*	lcVars = reduce(m.lcVars)
>RETURN m.lcVars
>ENDFUNC
>
So, for my original question, especially give the thread title, you could have just said "Try DISPLAY MEMORY." An exacto knife. And a pencil. That's all I wanted.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform