Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identify variables
Message
 
À
05/06/2007 06:56:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01230420
Message ID:
01230526
Vues:
12
Hi Cetin,

Your Hired! That would work and I did not think of looking at the API for a solution. I'm in process of making the required modifications to the base code now. I believe that is the best way to deal with this.

Thanks again,
Mike


>If you still need to find them out then check Foxpro API and particularly topics where NTI is included. I think NTI is what "list memory like" uses to find them out.
>Cetin
>
>>That's what I suspected. I just wanted to check to make sure I was not overlooking the obvious. Guess I'll have to dig into the application that provides the var's and make a change.
>>
>>Thanks for your help,
>>Mike
>>
>>
>>>Recently I created an application that displays stored 'memorizer' variables. Essentially I used the RESTORE FROM command here. All variables started with 'M_' and had consequtive numbers, like M_1, M_2, etc. Therefore, a FOR/NEXT was enough for me. So, my job was somewhat easier than yours.
>>>
>>>I have searched for an even easier way, but couldn't find one. I think you will indeed have to write to a file and analyze the file line by line.
>>>
>>>>Thanks Hugo,
>>>>
>>>>I knew about the List Memory as well as the Save To. I was checking to see if there was a better way that I had overlooked. I'm thinking I will have to dig into the source programs to pass the values I need in a "clean" fashion. This function has to run efficiently in a mtdll so I don't want to be writing and reading to files or parsing a memo field just to get the values.
>>>>
>>>>>Michael
>>>>>
>>>>>LIST MEMORY LIKE chk_* to file {Somefilename}
>>>>>
>>>>>is one way
>>>>>
>>>>>>I have an unknown set of variables that will be in scope in a function and will have a common prefix. How can I identify all of the variables and get their values (actually, all I need are the values)? I played around with using “save to” function but I feel like I’m missing something obvious.
>>>>>>
>>>>>>The vars will all have “chk_” as the prefix: chk_DCW, chk_SIR
>>>>>>
>>>>>>Thanks,
Michael McLain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform