Reply to Thread

Post a reply to the thread: Got that one fixed... documentation correction

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 01-29-2011, 11:32 AM
    linder

    Re: Got that one fixed... documentation correction

    Perfect

    Friedrich
  • 01-29-2011, 11:32 AM
    torrid

    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.
  • 01-29-2011, 11:12 AM
    linder

    Re: Got that one fixed... documentation correction

    Yes

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

    Does this help?

    Friedrich
  • 01-29-2011, 11:11 AM
    linder

    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
  • 01-29-2011, 11:10 AM
    torrid

    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
  • 01-29-2011, 10:47 AM
    torrid

    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

Posting Permissions

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