NetTalk Central

Author Topic: Is it save to use ST.Split() in a NetWebForm  (Read 4975 times)

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Is it save to use ST.Split() in a NetWebForm
« 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
Clarion 10, NT 11.57

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Is it save to use ST.Split() in a NetWebForm
« Reply #1 on: July 14, 2019, 10:19:27 PM »
yep, that's safe.

Cheers
Bruce

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Is it save to use ST.Split() in a NetWebForm
« Reply #2 on: July 15, 2019, 12:31:56 AM »
Thanks Bruce.
Clarion 10, NT 11.57