Hi!
So lets say I have a variable named sunSet which holds the string "overTheHills"
and I want to check the last 5 positions of the string sunSet to see if it holds the word "Hills"
If it does, I want to execute a set of functions, and if it doesn't, I want to do something else..
Is it possible to only check the last specified positions? like starting from the end of the string?
For example if I searched the String "OverHillsThe", I don't want the check to go through..
I want it to be true only if Hills is at the end of the string.
So the "contains" function wouldn't work..
Checking a variable for a substring
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Checking a variable for a substring
Dear Jessican,
you may use "Parse String" command.
http://www.installaware.com/forums/viewtopic.php?f=2&t=10154&p=38296&hilit=Parse+String#p38296
Regards
you may use "Parse String" command.
http://www.installaware.com/forums/viewtopic.php?f=2&t=10154&p=38296&hilit=Parse+String#p38296
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
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
Re: Checking a variable for a substring
Thanks so much!
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Checking a variable for a substring



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
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
Who is online
Users browsing this forum: No registered users and 143 guests