String function - Finding righter-most character

Got a problem you cannot solve? Try here.
AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

String function - Finding righter-most character

Postby AdrianGray » Sun Apr 19, 2015 6:04 pm

I need to determine if the last character of a sting variable is a back-slash. The logic I am looking to implement is...

If Right($TARGETDIR$,1) is not equal to "\" then Set Variable $TAGETDIR$ to $TARGETDIR$ + "\"
The "Extract Path" is no good as the path could be in a UNC format so it replaces the initial \\ with a single
Look forward to your reply, Adrian

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: String function - Finding righter-most character

Postby FrancescoT » Mon Apr 20, 2015 12:04 pm

Dear Adrian,

please have a look at the following discussion.
http://www.installaware.com/forum/viewtopic.php?f=2&t=10154&start=0

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 103 guests