Datagrid problem

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
CAsba
Posts: 389
Joined: Fri Sep 30, 2022 12:11 pm

Datagrid problem

Post by CAsba » Mon May 15, 2023 9:13 am

Hi,
I've used the following code

Code: Select all

set the dgtext of grp "datagrid 1" to empty
This code worked fine on one particular card.
On a second card, it had no effect, the DG retained all its data.
I tried un-ticking 'persistent data' in the DG and still not working.
Any ideas ?

CAsba
Posts: 389
Joined: Fri Sep 30, 2022 12:11 pm

Re: Datagrid problem

Post by CAsba » Mon May 15, 2023 9:30 am

Whoa,
I sorted it by re-starting windows !
(Sigh..)

stam
Posts: 2758
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Datagrid problem

Post by stam » Mon May 15, 2023 1:55 pm

if you're call this from another card, make sure you specify the card that contains the datagrid, ie:

Code: Select all

set the dgText of grp "<data grid name>" of card "<card name>" to empty

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”