Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
In app help question
#1
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)
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
Reply
#2
It's GetNthToken. I'll fix that typo. I've been thinking about how to provide context sensitive help. I may not get there for 5.1, but should make some progress on that front before long.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SSL Certificate Question gReatAutomation 1 898 10-26-2020, 07:48 AM
Last Post: gReatAutomation
  V2 Question - OpenWeatherMap Using their New JSON Data Feed kblagron 7 2,087 05-07-2020, 01:40 PM
Last Post: Dean Roddey
  Dynamic Overlay Question bryanb 4 1,314 04-17-2020, 03:48 AM
Last Post: bryanb
  Triggered Event on Timer Question znelbok 7 3,348 12-09-2019, 02:10 PM
Last Post: znelbok
  Question on CQC Driver Pack Install kblagron 1 1,258 11-26-2019, 06:38 PM
Last Post: Dean Roddey
  SONOS Driver Question gReatAutomation 13 5,516 08-23-2019, 12:37 PM
Last Post: Dean Roddey
  Insteon V2 Driver Question kblagron 1 1,232 08-01-2019, 10:51 AM
Last Post: kblagron
  Question on Parsing a String in a CML Macro kblagron 2 1,598 06-18-2019, 06:21 PM
Last Post: Dean Roddey
  ELK M1 Client Interface question lleo 1 1,290 06-12-2019, 08:15 AM
Last Post: Dean Roddey
  Question on Socket Error kblagron 4 2,216 04-07-2019, 09:19 PM
Last Post: kblagron

Forum Jump:


Users browsing this thread: 1 Guest(s)