Datagrid stopper out of the gate

Jim Ault jimaultwins at yahoo.com
Mon Jul 19 05:23:37 EDT 2010


I am doing a quick study of the Datagrid object and getting a  
confusing result.
For me, there is a time-deadline this week, so I need to figure this  
out quickly.

Defining a datagrid group, five columns, then running the following  
stack script
--   Rev 3.5.0   build 860
--   relaunch and open only the test stack

on testLoadDgrd   --postTimeDgrd
    get the cpGTasklist of this stack
      --using tab delimited lines
    get line 1 to 11 of IT
    set the clipboarddata to line 2 to -1 of IT
    put true into keyy
    set the dgText[keyy] of  group "postTimeDgrd" to IT
end testLoadDgrd

-------------------------
The result is that only column one is loaded with data, yet all of the  
tab characters are loaded.

If I use the inspector:Contents and paste in the same data, all  
columns are filled.
Why the difference?

All column labels are the correct case
Even using
   replace ":" with comma in IT
   --makes no difference
-------------------------------
The 11 lines of the incoming data table

Post      Race      Track      City      State
09:34     1     FLX     Farmington     NY
09:54     1     RDX     North     OH
09:54     1     RDX     Cincinnati     OH
09:59     1     WOX     Rexdale     ON
10:01     2     FLX     Farmington     NY
10:09     1     CRC     Miami     FL
10:15     2     RDX     North     OH
10:28     3     FLX     Farmington     NY
10:31     2     WOX     Rexdale     ON
10:36     3     RDX     North     OH
------------------------------

Thanks for any help,
It is a little disconcerting to get stopped on page 5 of the tutorial.


Jim Ault
Las Vegas




More information about the use-livecode mailing list