Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identify variables
Message
 
À
04/06/2007 21:56:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01230420
Message ID:
01230491
Vues:
15
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform