Results 1 to 9 of 9

Thread: Variable case sensitivity

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Variable case sensitivity

    Friedrich,

    In 5.0.1116 I have a number of variables declared in the main script that are
    referenced in included scripts. Recompiling a script today, I've got a
    compiler error from an include that a variable has not been previously
    defined.

    That variable is defined as %LPRODUCTCODE% at line 125 of the main script.
    The include is at line 328, so it shouldn't be a scope issue.

    As I was writing this I noticed a case issue for the single variable
    %LPRODUCTCODE%. It is (unintentionally) declared in uppercase, but used in
    lower in a function call with all these other doo-dads.

    %szExePath%,%szDataPath%,%szProgVersion%,%szLicens ee%,%szSupportExpires%,%lProductCode%,%lUpdateOk%, %lLicenseType%,%lLicenseOptions%

    Has SB become case sensitive (it hasn't been until this compile)? I hope not
    because I can read the line above. The one below, which I hope I don't need
    to use, reads like I talk after a couple of joints.

    %SZEXEPATH%,%SZDATAPATH%,%SZPROGVERSION%,%SZLICENS EE%,%SZSUPPORTEXPIRES%,%LPRODUCTCODE%,%LUPDATEOK%, %LLICENSETYPE%,%LLICENSEOPTIONS%

    --
    Best regards,

    Mark

  2. #2

    Default Re: Variable case sensitivity

    Hi Mark,

    Variables in SB5 have always been case-sensitive ;-)

    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    1.954.252.3910

  3. #3

    Default Re: Variable case sensitivity

    >Hi Mark,
    >
    >Variables in SB5 have always been case-sensitive ;-)
    >
    >Friedrich

    Ok, but when did it start forcing upper on new/edited variables? I realized
    how %LPRODUCTCODE% became upper after deleting it and attempting to re-enter
    it as mixed case. Before the compile that produced the error, I edited that
    variable to changed its assigned value for a new project. I understand now
    that it was forced to upper by the edit, and new variables are forced to
    upper.

    I can live with whatever you need on case, but forcing case on edit broke the
    script. Seems kind of hyper-sensitive, wouldn't you think?

    Ok, I'll stop whining and resign my self to actually touching caps lock when
    I start SB. :}

    --
    Best regards,

    Mark

  4. #4

    Default Re: Variable case sensitivity

    Hi Mark,

    Hmm, I fear I do not understand What changed in one of the latest
    builds? I think I have not modified the variable thing. When I use "Set
    Variable" it always upper-case here on our test machines.

    Thanks,
    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    1.954.252.3910

  5. #5

    Default Re: Variable case sensitivity

    >Hi Mark,
    >
    >Hmm, I fear I do not understand What changed in one of the latest
    >builds? I think I have not modified the variable thing. When I use "Set
    >Variable" it always upper-case here on our test machines.

    Friedrich,

    Have a look.

    --
    Best regards,

    Mark
    [IMG]sbvarcase.png[/IMG]
    Attached Images Attached Images  

  6. #6

    Default Re: Variable case sensitivity

    Mark,

    Very interesting... Do you know how to reproduce this?

    Thanks,
    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    1.954.252.3910

  7. #7

    Default Re: Variable case sensitivity

    >Mark,
    >
    >Very interesting... Do you know how to reproduce this?

    Friedrich,

    Well, of course. Revert to an unknown prior version. :}

    Seriously, I understand now that the behavior I took advantage of was
    unintended. I'm ok with that.

    --
    Best regards,

    Mark

  8. #8

    Default Re: Variable case sensitivity

    Mark,

    Okay, thank you. Just to be on the safe side - in build #1120 "Set
    Variable" always creates upper-case variable names, right?

    Thank you for your time!

    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    1.954.252.3910

  9. #9

    Default Re: Variable case sensitivity

    >Mark,
    >
    >Okay, thank you. Just to be on the safe side - in build #1120 "Set
    >Variable" always creates upper-case variable names, right?

    Friedrich,

    I haven't had time to grab 1120 yet, but I can assure you that 1116 does.

    --
    Best regards,

    Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. #00015: Is there a system PATH Environment Variable Size Limit in XP?
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 04-03-2006, 07:42 AM
  2. Using a variable in Install Files
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 11
    Last Post: 01-24-2006, 01:30 AM
  3. Declaring a Variable used from Command Line
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 21
    Last Post: 01-19-2006, 09:41 AM
  4. Cannot open and compress service file - error
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 12-06-2005, 04:40 AM
  5. _SB_ROOT and variable paths
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 03-16-2005, 10:35 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
  •