Zabaware Support Forums

customem & saving variables (HELP)

Started by ll420ll, May 24, 2009, 09:49:27 PM

Previous topic - Next topic

ll420ll

I'm working on on plug-in and I could uses a lil help.

I found this topic, but i am still having issues.
I think i should be able to save a variable using custommem
Like this...
CustomMem = HalBrain.EncodeVar(MyTable, "MyVariableName")
StoredVariables = HalBrain.ExtractVar(CustomMem, "MyVariableName")

I very new at this, but im starting to figure some things out.
If i can make this work, I will have one neat plugin to share later.
Thanks for the help!!!
 

ll420ll

#1
I see what I did, vrossi answered this in a post about Hal emotions plug-in.

Rem PLUGIN: CUSTOMMEM
'The preceding comment is actually a plug-in directive for
'the Ultra Hal host application. It allows for code snippets
'to be inserted here on-the-fly based on user configuration.
'------------------
' Loads stored variables
'------------------
vrNight = HalBrain.ExtractVar(CustomMem, "vrNight")

Rem PLUGIN: CUSTOMMEM2
'The preceding comment is actually a plug-in directive for
'the Ultra Hal host application. It allows for code snippets
'to be inserted here on-the-fly based on user configuration.
'------------------
' Saves stored variables
'------------------
CustomMem = CustomMem & HalBrain.EncodeVar(vrNight, "vrNight")
 

snowman

I think the reason no one has even attempted to answer your post is because no one knows the answer...

Good Job ll420ll on stumping the establishment.

[:)]
Live long and prosper or die trying.