Search found 6 matches

by resty
Thu Dec 22, 2016 11:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Assigning a value to a card field
Replies: 6
Views: 5869

Re: Assigning a value to a card field

Klaus,
That works really well! Thanks for the Christmas gift! :wink:
Thanks to dunbarx for the enlightenment.
by resty
Thu Dec 22, 2016 6:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Assigning a value to a card field
Replies: 6
Views: 5869

Re: Assigning a value to a card field

Klaus,
Thank you for your reply. So how do I, ah, uhm, create an index? I tried the following but no
cigar.

put the dgHilitedLines of group "entriesGrid" into theLine
put the dgDataofIndex[theLine] of group "entriesGrid" into tIndex
put the dgDataOfLine[theLine] of group "entriesGrid" into ...
by resty
Thu Dec 22, 2016 6:32 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Assigning a value to a card field
Replies: 6
Views: 5869

Assigning a value to a card field

Hello,
How does one assign a value to a card field? I have a field defined as " rWord ". Then:

put the dgDataOfLine[theLine] of group "entriesGrid" into tWord
set the text of field "rWord" to tWord

But the second line does not assign the value of tWord (yes, it has a value) to the firled ...
by resty
Sun Dec 18, 2016 8:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: CRUD SQLite example
Replies: 66
Views: 106497

Re: CRUD SQLite example

I got it to work replacing the repeat loop (it's the Read db into Datagrid I was referring to).

repeat with ii = 1 to fld "rCounter"
put line ii of dlist into temp
dispatch "AddLine" to grp "myGrid" with temp
end repeat

with the statement:

set the dgText of group "myGrid" to ptext

What ...
by resty
Sun Dec 18, 2016 7:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: CRUD SQLite example
Replies: 66
Views: 106497

Re: CRUD SQLite example

Hello,
I'm trying to learn data grid using CRUD SQLITE example as a test application. The populate data group routine runs to completion with no errors, but no data is displayed on the grid. Wonder what''s going on. The following command appears to be what moves data to the grid. What is AddLine? I ...
by resty
Tue Dec 13, 2016 11:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: CRUD SQLite example
Replies: 66
Views: 106497

Re: CRUD SQLite example

Thank you, Paul Townsend. Much appreciated.