James,
Replacing "DataGrid1" with "DataGrid 1" (with space) gives the same (good)
result
André
Début du message réexpédié :
> De : André Bisseret
> Date : 28 juin 2012 08:29:59 HAEC
> À : How to use LiveCode
> Objet : Rép : data grid error - Erro
Bonjour James,
Here with a data grid "Datagrid1" without space before 1
and 5 columns named :
- name
- filename
- display_page
- current_book
- id
a copy of your script populates the data grid as expected ; no problem ;-))
Best regards from Grenoble
André
Le 27 juin 2012 à 19:32, James Hale a
On 6/27/12 2:33 PM, Dr. Hawkins wrote:
Spaces are *evil*
No spaces in names.
Ever.
For any reason.
I used to feel the same way until a few years ago when someone mentioned
that he always named his numbered controls with a space before the
number. That allows easy identification of the num
Solved!
> My guess is that the group is labeled "DataGrid 1" rather than "Datagrid1".
> Notice the space before 1. This very issue has tripped me up in the past.
> (James Little)
Thanks to everyone who replied.
It was 3:30 AM and I was getting a bit weary.
I also agree that there should not
I agree.
The challenge is that when you drag a new datagrid object onto a stack,
LiveCode defaults to a name with a space, e.g. group "Datagrid 1". I've
learned to always remove the space from the default name.
Jim L.
On Jun 27, 2012, at 12:33 PM, Dr. Hawkins wrote:
> On Wed, Jun 27, 201
On Wed, Jun 27, 2012 at 10:44 AM, James Little wrote:
> My guess is that the group is labeled "DataGrid 1" rather than "Datagrid1".
> Notice the
>space before 1. This very issue has tripped me up in the past.
Spaces are *evil*
No spaces in names.
Ever.
For any reason.
The only punctuation
quote yoru array keys. You can't use name, id, etc the way you are because
they're reserved words. If you quote them the error should go away.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and
First make sure that the actual column names are the same as the key names in
the array. There is a display name, as well as the column name and they can be
different. I tripped up on this at first myself.
Bob
On Jun 27, 2012, at 10:32 AM, James Hale wrote:
> Hi,
>
> I have finally got arou
Hi James,
My guess is that the group is labeled "DataGrid 1" rather than "Datagrid1".
Notice the space before 1. This very issue has tripped me up in the past.
Jim L.
On Jun 27, 2012, at 10:32 AM, James Hale wrote:
> Hi,
>
> I have finally got around to using the DataGrid.
>
> I have an
Hi,
I have finally got around to using the DataGrid.
I have an array that I want to display in a datagrid
I have dragged one on to the current card, named it "datagrid1" and set the
column names.
as an example:
put "fred" into theRecordsB[1][name]
put "fred file" into theRecordsB[1][filename]
10 matches
Mail list logo