Page 2 of 2

Re: From json to array to datagrid

Posted: Thu Dec 29, 2011 5:20 am
by teacherguy
Mark, thank you so much for your time, I really appreciate it. :)

Brian

Re: From json to array to datagrid

Posted: Sat Jan 07, 2012 10:33 pm
by marksmithhfx
BTW, here is an easier way to do the parsing in the parse button:

Code: Select all

on mouseUp
   set the dgText of group "plan from google" to empty -- initialize
   put empty into fld output -- initialize
   put fld"input" into tinput -- initialize
   put quote & "c" & quote & ":" into delimiter  -- i.e. "c":
   replace delimiter with return in tinput -- seperate input into records
   put quote & "v" & quote & ":" into delimiter -- i.e. "v":
   replace delimiter with tab in tinput -- seperate records into fields
   put tinput into fld"output" -- lets have a look at it
end mouseUp

Re: From json to array to datagrid

Posted: Sun Jan 08, 2012 6:42 pm
by teacherguy
Clean and elegant, thanks much