04-13-2017, 11:00 AM
Dean,
Liking the in app help more each day. Would really be good great to be able to search and to pull up the help within the current screen function (like  template - listbrowser)
My question is the help page says GenNthToken?  is that right or is it GetNthToken? looking to parse the first data item(number) in a string variable.
System Action Target.
GenNthToken(tosearch, sepchar, tokenindex, tarvar)
Liking the in app help more each day. Would really be good great to be able to search and to pull up the help within the current screen function (like  template - listbrowser)
My question is the help page says GenNthToken?  is that right or is it GetNthToken? looking to parse the first data item(number) in a string variable.
System Action Target.
GenNthToken(tosearch, sepchar, tokenindex, tarvar)
Quote:tosearch: 
The source text to search
sepchar: 
The separator character to use
tokenindex: 
The zero based index of the token to retrieve
tarvar: 
The target variable to put the resulting token text into
Sometimes you may have a list of values in a string, such as a comma separated list of names or something of that nature, and you need to get a specific one out. This method will find the Nth separated token in a string, based on a given separator character (comma in the example above.)
If the token index is beyond the available tokens in the string, an error will occur. GetStrListCount will tell you how many tokens are in the source string, using the same separator character.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine