NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan de Klerk on July 14, 2019, 03:20:01 AM

Title: Is it save to use ST.Split() in a NetWebForm
Post by: Johan de Klerk on July 14, 2019, 03:20:01 AM
Hi Bruce,

I have a string with lots of values separated by a ,

I want to use ST.Split to get them out and compare them to see what the next option is.

I want to use:
ST.Free()
Loc:MyString = 'M,P,ER,PO,D,XW,T,H,E,MX'
ST.SetValue(Loc:MyString)
ST.Split(',')
LOOP MyRecs# = 1 TO ST.Records()
    IF ST.GetLine(1) = 'M'
        DoSomething
    ELSIF ST.GetLine(1) = 'PO'
        DoSomethingElse
    END
END
ST.Free()

Regards

Johan de Klerk
Title: Re: Is it save to use ST.Split() in a NetWebForm
Post by: Bruce on July 14, 2019, 10:19:27 PM
yep, that's safe.

Cheers
Bruce
Title: Re: Is it save to use ST.Split() in a NetWebForm
Post by: Johan de Klerk on July 15, 2019, 12:31:56 AM
Thanks Bruce.