Reply to Thread

Post a reply to the thread: Last character of string?

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)

  • 09-05-2007, 04:55 AM
    David Webber

    Re: Last character of string?

    Dooohhh! Just found "HandleString" after posting - wasn't looking under H.

    Please ignore question!

    Dave
  • 09-05-2007, 04:50 AM
    David Webber

    Last character of string?

    Is there any way to get the last character of a string stored in a variable?

    If not, could we have one in a future build?

    I can foresee two needs for this (of which my current one is the second).

    1. If you get a folder name from somewhere in the registry, it may or may not end in '\' It would be nice to know before appending things. (People are not always consistent about this.)

    2. If you want to read a .chm file on another computer on your LAN these days, you may need to add its location to a list of allowed locations at

    [HKLM\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestricti ons]
    UrlAllowList=....

    The value of the key name "UrlAllowList" is (more or less) a list of places separated by semicolons.

    I can use the If-Does-not-contain choice to detect whether mine is there (but it would be easier if case insensitive and case sensitive options were available). If it is not there, I can append a semicolon and append my entry, and reset the registry variable.

    But I suspect others are not consistent about whether or not they leave a semicolon on the end of the existing registry key, and it would be nice to test for this.

    (Do I get a prize for the most obscure usage of SetupBuilder ever )

    Dave

Posting Permissions

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