Post Reply 
Setting up a HVar inside a program, IF it doesn't already exist.
04-15-2022, 04:59 AM
Post: #5
RE: Setting up a HVar inside a program, IF it doesn't already exist.
(04-14-2022 09:01 PM)matalog Wrote:  Thanks, that does work, but it doesn't allow me to update a non local List Variable, as it may not exist when the program is first Run.

If I wanted to use this method, then I would start by loading the local list variable with the non local one, but that isn't possible as it is potentially not created yet.

Is there a definite way to create a list variable within a program, that doesn't require the program being exited to have the List variable actually created and updatable.

A solution to this would be to run a small prep program before use of the main program, but that isn't user friendly for a new user of the program.

Bonjour,

Je ne comprends pas trop vôtre problème ?
Etape 1: tester si la HVars existe si oui Etape 2 sinon la créer (ici une liste vide)
Etape 2: Copier cette HVars dans une variable locale
Etape 3: Modifier la variable locale
Etape 4: Copier la variable locale dans la HVars.
C'est la méthode que j'utilise tout le temps et qui fonctionne pour moi.

Hello,

I don't really understand your problem ?
Step 1: test if the HVars exists if yes Step 2 if not create it (here an empty list)
Step 2: Copy this HVars in a local variable
Step 3: Modify the local variable
Step 4: Copy the local variable into the HVars.
This is the method I use all the time and it works for me.

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Setting up a HVar inside a program, IF it doesn't already exist. - Tyann - 04-15-2022 04:59 AM



User(s) browsing this thread: 1 Guest(s)