Forums > MaxMSP

Divide string in separate messages

December 6, 2012 | 4:00 pm

Hello

I am getting a string of stock market info in a messagebox and I would like to divide this message in the different valueboxes to use the number values. How should I do that?

An example of a messgae: AAPL "542.24" 12/6/2012 10:36am "17111232" USD "N/A – N/A" – "542.25" "542.25" "200" "20467700" "542.11" "542.11" "100" "125.861" +3.4477 "+3.4477 – +0.64%" "-36.919" "-69.78" "-162.83" +164.56 +0.64% "N/A – +0.64%" +3.4477 – USD "542.25" "518.63" "518.63 – 542.25" "N/A – N/A" "- – +0.64%" "N/A – N/A"

Already found it: all of the data are symbols, I use unpack s s s s…. s and then for real numbers I use fromsymbol


Viewing 1 post (of 1 total)