Basic table field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Basic table field
Hello, I dont know much about basic table fields or how basic they are, Im already using it to store data from mysql database and its working fine, but I dont know how to get the contents of the cells or a specific cell in the table and I searched for some kind of documentation about this type of field but the information I found wasnt useful.
Re: Basic table field
Hi hsh_636,
well, a TABLE field is "just" a field with TABs in it!
...
## To get "cell" B2
set itemdel to TAB
put item 2 of line 2 of fld "your table field here" into tCellB2
...
Best
Klaus
well, a TABLE field is "just" a field with TABs in it!

...
## To get "cell" B2
set itemdel to TAB
put item 2 of line 2 of fld "your table field here" into tCellB2
...
Best
Klaus
Re: Basic table field
So, what message does the field object receive when you click on item 2 of line 2 (that is, the cell[2,2] is highlighted, with the insertion point appearing at the beginning) ?
The code
returns empty.
Thanks,
Sri.
The code
Code: Select all
on mouseUp
put the selectedText of me into msg
end mouseUp
Thanks,
Sri.
Re: Basic table field
Hi Sri,
the table field is very basic and on top the working is hidden from the user in a frontscript.
for a discussion see:
http://runtime-revolution.278305.n4.nab ... 76192.html
there is also a script how to get at the cell that received a click.
Kind regards
Bernd
the table field is very basic and on top the working is hidden from the user in a frontscript.
for a discussion see:
http://runtime-revolution.278305.n4.nab ... 76192.html
there is also a script how to get at the cell that received a click.
Kind regards
Bernd
Re: Basic table field
Thanks for the link, Bernd!
Regards,
Sri.
Regards,
Sri.