Hey guys, I've been able to put normal text and pictures into a data grid, but i need to put a record in with out having to manually put all the data in, does anyone know what i have to do to do this?
Any help would be appreciated
cheeeeers
P.S I'm using livecode 4.6.0
Putting Records Into a Data grid?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Putting Records Into a Data grid?
What do you mean by "record" ?
Data coming from a database for instance ?
If yes, nothing special or different from regular text.
Data coming from a database for instance ?
If yes, nothing special or different from regular text.
Code: Select all
put false into pFirstLineContainsHeaders
set the dgText [ pFirstLineContainsHeaders ] of group "myDataGrid" to myData
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Putting Records Into a Data grid?
bangkok wrote:What do you mean by "record" ?
Data coming from a database for instance ?
If yes, nothing special or different from regular text.
Code: Select all
put false into pFirstLineContainsHeaders set the dgText [ pFirstLineContainsHeaders ] of group "myDataGrid" to myData
Bangkok, you may know this already but the above can be abbreviated to
Code: Select all
set the dgText of group "myDataGrid" to myData
-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- Posts: 4
- Joined: Mon Dec 12, 2011 1:29 pm
Re: Putting Records Into a Data grid?
Thanks for that, i shall see if it works
By record i mean a 2-D array with different data types.
Cheeeers.
EDIT : I think that would work but I'm having trouble putting any data into the data grid. Is there something i need to do , to get the data grid to update with the new data?

Cheeeers.
EDIT : I think that would work but I'm having trouble putting any data into the data grid. Is there something i need to do , to get the data grid to update with the new data?