Brian
From json to array to datagrid
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
teacherguy
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: From json to array to datagrid
Mark, thank you so much for your time, I really appreciate it.
Brian
Brian
-
marksmithhfx
- VIP Livecode Opensource Backer

- Posts: 939
- Joined: Thu Nov 13, 2008 6:48 am
Re: From json to array to datagrid
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
macOS 15.6 (Sequola), Xcode 15.3, LC 10.0.2, iOS 18.6.2
-
teacherguy
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: From json to array to datagrid
Clean and elegant, thanks much