+ Reply to Thread
Results 1 to 6 of 6

Thread: Got that one fixed... documentation correction

  1. #1
    Join Date
    Jan 2006
    Location
    Georgia, USA
    Posts
    63

    Default Got that one fixed... documentation correction

    Friedrich,

    Figured out that last one... I don't start with Set Variable but just with the Detect ACtive Application and then set the variable in there...

    New item...your help documentation shows $IDCANCEL$ ... if I put that in the box it shows in code and throws error that its not defined. It must be entered without the $ signs.

    On Detect ACtive Application page in help file it shows:

    If %_SB_RETURN% Equals "$IDCANCEL$" Then

    Exit Installation

    End

    It should be:

    If %_SB_RETURN% Equals "IDCANCEL" Then

  2. #2
    Join Date
    Jan 2006
    Location
    Georgia, USA
    Posts
    63

    Default Re: Got that one fixed... documentation correction

    ACtually using "IDCANCEL" compiles but does not work... cancel button never detected and endless loop never broken out of .... so I went back and change it to: $IDCANCEL$

    and on compile I get:
    Reference to constant $IDCANCEL$ has not been previously defined.

    AM I supposed to add an include or something?

    I am running SB 7.3.3195

  3. #3
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: Got that one fixed... documentation correction

    Hello,

    No, the documentation is 100% correct! $IDCANCEL$ (= 2) is defined in the "Common Definitions.sbi" file. I assume you are using the constant before you call that include script to define constants.

    Your code is wrong now. IF resolves to true if the %_SB_RETURN% runtime variable is "IDCANCEL" (the complete string). I am sure that is not what you are trying to do here

    Hope this helps.

    Friedrich

  4. #4
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: Got that one fixed... documentation correction

    Yes

    ! --- Define commonly used constants ---
    #include script "Common Definitions.sbi"

    Does this help?

    Friedrich

  5. #5
    Join Date
    Jan 2006
    Location
    Georgia, USA
    Posts
    63

    Default Re: Got that one fixed... documentation correction

    I'm sorry... I figured it out... I had the detect active application code as the first thing in my script... even before the definitions include file..... thus $IDCANCEL$ was not defined at that point...

    My bad....sorry about that.

  6. #6
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: Got that one fixed... documentation correction

    Perfect

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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