> On Jan 21, 2021, at 1:30 AM, Keith Clarke via use-livecode 
> <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Please can anyone advise on the correct syntax for trying to find the first 
> non-tab character offset in a string

Hi, Keith.  You could test each character until you find a tab:

function offsetOfNotTab pString
 local i
 repeat for each char tChar in pString
    add 1 to i
    if tChar <> tab then return i
 end repeat
end offsetOfNotTab

— Dick
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to