Multi Variable

Share sample pubs, scripts, etc. with other NeoBook users

Moderator: Neosoft Support

Locked
tungb6
Posts: 7
Joined: Sat Dec 20, 2014 1:01 am

Multi Variable

Post by tungb6 »

How to use Multi Variable in Neobook Script? or how to store muti variable ....
Please tell me how to use the script for using multiVariable.

Thanking you
User avatar
Gaev
Posts: 3782
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada
Contact:

Re: Multi Variable

Post by Gaev »

tungb6:

Why are you using this forum to ask a bunch of "how to" questions ? ... it says ...
Sample NeoBook Pubs
Share sample pubs, scripts, etc. with other NeoBook users
There are other forums for asking questions ...like ...
General NeoBook Discussions
General questions about NeoBook

... or ...

NeoBook Action Commands
Questions about using NeoBook's scripting language

How to use Multi Variable in Neobook Script? or how to store muti variable ....
Please tell me how to use the script for using multiVariable.
What is a multiVariable ? ... I searched the Help file and there is not a single reference to this term.
tungb6
Posts: 7
Joined: Sat Dec 20, 2014 1:01 am

Re: Multi Variable

Post by tungb6 »

I am extremely sorry.
My knowledge of ‘Neobook’ is very poor because I am a new user, so I need help...

Thank you...
User avatar
Gaev
Posts: 3782
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada
Contact:

Re: Multi Variable

Post by Gaev »

tungb6:
My knowledge of ‘Neobook’ is very poor because I am a new user, so I need help...
There is nothing wrong with asking questions ... even encouraged ... but please post your question in the appropriately designated forum(s) ... otherwise, future users would miss the benefit of responses ... as they would not think to look in this particular forum.

Anyway, what exactly do you mean by multiVariable ? ... please explain with example/details.
User avatar
dpayer
Posts: 1394
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA

Re: Multi Variable

Post by dpayer »

There are different ways to save the variables of a program in NB.

You have a native NB command: SaveVariables
This saves ALL the variables to a single file. You can later load those variables into active memory with the LoadVariables command.

You can also save selective variables in a file, this is the common usage of a .ini file.

Here is a function to write and read ini files.

You can create your own file format for this purpose as well. Then read the file and set the variables one by one. Here is a function to set many variables at once with one command.

Good luck!
David Payer
Des Moines, Iowa
USA
Locked