Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identify variables
Message
De
05/06/2007 08:35:45
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01230420
Message ID:
01230527
Vues:
14
>Hi Mike,
>
>Since my piece will only need the data in the vars I will probably just pass that info up. I was hoping to avoid digging into the source but it looks like that is not an option.

Just FYI then:

A UDF can only accept 27 vars. It's best to pass vars to a function rather than expect them to exist as in the case of global or private vars.

A parameter object can pass a huge number of parameters.

>
>Thanks,
>Mike
>
>>Try a parameter object. It's properties will be the passed values.
>>
>>>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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform