Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2006
    Posts
    4

    Setting variables?

    Previously in v4, all varialbes were preset %...%

    Whats the new way to do them in v6? I dont understand...

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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.

  3. #3
    Join Date
    Jan 2006
    Posts
    4
    im talking about %WinDir% and those variables??

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Check out the built in variables in the help file, we use stuff like this now:

    _DesktopFolder
    _SourceDrive

    And so forth.

  5. #5
    Join Date
    Jan 2006
    Posts
    4
    yeah but how do i use them? :S

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    You use them just like normal variables. Here you go:
    http://www.indigorose.com/webhelp/am.../Variables.htm


  7. #7
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Quote Originally Posted by t94xr
    yeah but how do i use them? :S

    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

  8. #8
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    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

  9. #9
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Good tip!

  10. #10
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    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

Similar Threads

  1. Variables in message dialogs now broken?
    By Tek in forum Setup Factory 7.0
    Replies: 2
    Last Post: 03-14-2005, 02:09 AM
  2. Help passing screen variables
    By swilk in forum Setup Factory 7.0
    Replies: 2
    Last Post: 12-06-2004, 11:07 AM
  3. INFO: Setting Environment Variables
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 12:07 PM
  4. Monitoring Variables in ini files?
    By Lazerpower in forum AutoPlay Menu Studio 3.0
    Replies: 8
    Last Post: 02-28-2002, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts