Previously in v4, all varialbes were preset %...%
Whats the new way to do them in v6? I dont understand...
Professional Software Development Tools
Previously in v4, all varialbes were preset %...%
Whats the new way to do them in v6? I dont understand...
Hi. You don't need to initialize variables, you can just assign values as needed as long as you avoid reserved words (see help file for list) such as "function" or "then". So you can just do it like this:
myVariableName = 5;
myVariableName = "My text string";
So for example if you did this, the variable "c" would contain a value of 10 at the end:
a = 5;
b = 5;
c = a + b;
Hope that helps. There's a great page on variables in the help file, it's a very quick read and definitely worth taking in.![]()
im talking about %WinDir% and those variables??
Check out the built in variables in the help file, we use stuff like this now:
_DesktopFolder
_SourceDrive
And so forth.![]()
yeah but how do i use them? :S
You use them just like normal variables. Here you go:
http://www.indigorose.com/webhelp/am.../Variables.htm
![]()
Originally Posted by t94xr
Here is 1 instance where you can use the Built-in Constant:
folder = Dialog.FolderBrowse("Open Folder", _DesktopFolder);
Put it in a button On Click Event and it will open your desktop as a folder.
Newbie Examples
------> AMS 7.5 : amstudio.azman.info
----> AMS 6 & 5: www.azman.info/ams/
----> FB: facebook.com/GuideToWealth
----> Content Development Blog: www.AZMAN.asia
Tip: When in the Script area (tab) you can do such to see all of those built-ins:
(type) an underscore (_) and then CTRL+Spacebar
Intrigued
Good tip!![]()
Continuing on that tip:
Pick an object, say the Web object and then do this in the Script area (tab)
(type) "p" (the letter) and then Ctrl+Spacebar
Then just (arrow down or arrow up) and choose an Action!
That will speed up the process for the Actions.
Intrigued