Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 02 Aug 2013 at 10:54am
Another way to do it might be to do something like this:
StringVar Array sa := split({myTable.myField}, '_');
if (uBound(sa) > 1) then sa[2]
else sa[1]
This splits the string into an array of strings based on the location of the '_' character and then returns the second element which should be the string after the '_' character.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum