Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do i get the name of the variable or array
Message
From
16/12/2006 09:19:13
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
16/12/2006 05:29:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01178248
Message ID:
01178274
Views:
15
>Suhas,
>
>I have no idea what you really want to do, but List memory will list all memory variables. But why don't you try to explain why you do it the way you do it, maybe we can give you some better solution.
>
>>hi,
>>I am in a fix
>>
>>I have to store the variable/array name into a different array
>>
>>like
>>
>>m.foo1 = 0
>>dimension foo2[4]
>>
>>function1() that modifys foo1 and foo2
>>
>>and
>>
>>container[1] = "foo1"
>>container[2] = foo1
>>
>>container[3] = "foo2"
>>container[4] = foo2[1]
>>container[5] = foo2[2]
>>container[6] = foo2[3]
>>container[7] = foo2[4]
>>
>>how can i get the name of variable and array ??? keeping it in mind that there are about 65 variables created and function changes only a few of them. SO i check them and if not boolean need to add it to container ....
>>
>>Is it possible to get the name of the array/variable ?

What i really intend to do is pass the parameters to a method where the value of the parameter is stored and also the name of the parameter in the form property.

that way I can just use the parameter name to display in the Treeview

Eg:

3 variables are changed from a function

say

MA
ROC
RSI

I can just use the variable name to display in the treeview directly rather than specifying the like

If type('MA') != 'L'
thisform.property[1] = 'MA'
thisform.property[2] = MA
endif


I want to something like that

Hope i am clear because I am confused too.
suhashegde
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform