[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Accesing public txt from a page, best way to digest

Status
Not open for further replies.
M

Mike Fechner

Guest
[quote user="OctavioOlguin"] I've been reading this, but can't imagine how would apply in 4GL msdn.microsoft.com/.../system.string.split(v=vs.110).aspx [/quote] You can BOX an ABL Character value and CAST that to System.String to invoke the methods of the .NET System.String to that value. DEFINE VARIABLE cDelimiters AS CHARACTER NO-UNDO EXTENT 1 . DEFINE VARIABLE cString AS CHARACTER NO-UNDO INIT "123,456,789". DEFINE VARIABLE cParts AS CHARACTER NO-UNDO EXTENT . cDelimiters [1] = "," . cParts = CAST (BOX (cString), System.String):Split (cDelimiters) . MESSAGE cParts [1] SKIP cParts [2] SKIP cParts [3] SKIP VIEW-AS ALERT-BOX INFORMATION BUTTONS OK. However, when there is an ABL alterantive, like LOOKUP, ENTRY, SUBSTRING, etc.., I'd rather go with that.

Continue reading...
 
Status
Not open for further replies.
Top