Announcement

Collapse
No announcement yet.

What am I doing wrong

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What am I doing wrong

    As you will see I am new to Setup Factory.

    I want to assign a string of "M" to the variable #NET1#. Then I want to see if that letter (using #NET1#) is in the password that was just entered.

    #Net1# = M
    Find String (%Result% = position of #Net1# in %LCS_Password%)
    Show Message Box ( Results = %Results% & %LCS_Password%)

    IF (%Results% != %LCS_Password%)


    [This message has been edited by Jean (edited 01-31-2002).]

  • #2
    Re: What am I doing wrong

    Hi,

    The problem probably is your IF statement:

    IF (%Results% != %LCS_Password%)

    The reason for this is that %Results% will be set to the position that #NET1# is found in %LCS_Password% or -1 if #NET1# not found in %LCS_Password%.

    You might want to have the following IF Statement:

    IF (%Results% != -1)

    What does the MessageBox display?

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: What am I doing wrong

      Thanks for your fast help.

      can you see what is wrong with my

      Show Message Box parameters. The variable
      %Results% doesn't who what is in it it displays %Results%

      Comment


      • #4
        Re: What am I doing wrong

        Hi,

        The reason for this is that in the first action you are settings %Result% and in the Show Message Box action you are using %Results%.

        So change the variable in the first action to %Results% and it should work properly.

        Unless the %Result% and %Results% was a simple typo.

        mark.
        MSI Factory The Next Generation Intelligent Setup Builder

        Comment


        • #5
          Re: What am I doing wrong

          Oh man! Da!

          Thanks

          Comment

          Working...
          X