AnsweredAssumed Answered

VRf: How do you parse through a comma delimited string?

Question asked by VRFuser on Jun 23, 1997
Troy Fuqua <troy@tdsi.com> wrote:
> I have an IDN? string with a series of text and numbers separated by commas.
>
> I need to break up the string into it's smaller parts.
>
> Any suggestions?
>
> --troy
>

FROM STRING using token mode. See below example

Stan Bischof
stanb@sr.hp.com

(saveFormat "2.3")
(date "Mon 23/Jun/1997 14:01:01 PDT")
(veerev "4.0")
(platform "HP9000s700")
(execMode fast)
(filterNAN 0)
(workspaceStackingOrder M)
(SaveCF no)
(device 0 ROOTCONTEXT
(properties
(trigMode deg)
(nextID 3)
(popupTitleText "Untitled")
(popupMoveable 1)
(deleteGlobals 0))
(deviceList
(device 0 FROMSTRING
(properties
(transactions 1 "READ TEXT x TOKEN EXCLUDE:"," ARRAY:*"))
(interface
(input 1
(name "AString")
(requires
(datatype Text))
(lock name constraints))
(output 1
(name "X")
(optional yes)))
(implementation
(attr iopath string read "string"
(readTerm "
")
(fs " ")
(eol "
")
(multiField fullSyntax)
(arrayFormat block))))
(device 1 SCROLLINGTEXTDISPLAY
(properties
(logSize 256))
(interface
(input 1
(name "Data"))))
(device 2 LITERALCONSTANT
(properties
(name "Text"))
(interface
(output 1
(name "Text")
(lock name constraints)))
(implementation
(value Text
(data  "strings,and,23,24,24,numbers,separated,by,commas"))
(initValue Text
(data  ""))))
(configuration
(connect D2:1 D0:1)
(connect D0:1 D1:1)))
(contextCarrier
(wndOrigin 2 2)
(wndState res)
(active detail)
(detail
(extent 836 425)
(anchorPt 0 0)
(configuration
(devCarrierFor 0
(active open)
(icon
(extent 89 16))
(open
(extent 254 78))
(terminals on)
(pinCenter 405 110))
(devCarrierFor 1
(active open)
(icon)
(open
(extent 208 152)
(noformatter))
(pinCenter 560 280))
(devCarrierFor 2
(active open)
(icon)
(open
(extent 389 36))
(pinCenter 210 260))
(connect D2:1 D0:1
(points 6 407 260 420 260 420 200 200 200 200 110 215 110))
(connect D0:1 D1:1
(points 6 564 110 580 110 580 160 430 160 430 280 453 280)))
(stackingOrder 0 1 2))
(numberFormats
(realFormat standard)
(realSigDigits 4)
(realRadixSpec 4)
(integerBase decimal))))


Outcomes