Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2003
    Posts
    74

    Ini files - getting value names, values

    If I get AMS to retrieve a value, or valuename, and said value/valuename does not exist, what is returned in the specified variable?

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

    Re: Ini files - getting value names, values

    Just a note - Whenever you want to test and display variable values during runtime tests simply insert a dialog(s) to display it's value. You can easily remove the dialog later when you're done testing.

    Corey Milner
    Creative Director, Indigo Rose Software

  3. #3
    Join Date
    Jan 2003
    Posts
    74

    Re: Ini files - getting value names, values

    I have tried the dialog box, and say for example I had told the get value action to store in variable %example%. It says in the dialog box %example% when I test it. I dont want any actions to be done if the ini value action doesnt get anything.
    So I used the if action soemwhat like
    if %example% = "%example%
    and also tried it without the quotations.
    It should not be performing the actions, as they are all inside if actions, so nothing at all should happen. It seems to be the main problem I am having that is wrecking everyything else. Any ideas?

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    Re: Ini files - getting value names, values

    Before you get the info from the INI file, set the variable you're using to something like "RETURNED_NOTHING", and test for that string value. This way you have something valid to check against.

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Re: Ini files - getting value names, values

    The problem with using:

    if(%example% = "%example%")

    ...is that it will always be true.

    If the variable isn't set to anything, then both of them will still be the string "%example%".

    If the variable is set to something, it gets expanded in both places, so if it was "tree frog" then you'd have:

    "tree frog" = "tree frog"

    ...which is obviously the same.

    (Note that putting quotes around a variable doesn't make any difference in this case.)
    --[[ Indigo Rose Software Developer ]]

Similar Threads

  1. rename multiple files
    By jenny62 in forum Setup Factory 6.0
    Replies: 1
    Last Post: 04-13-2004, 01:25 PM

Posting Permissions

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