I have a 4WR PRO area on a form. It is associated with the field
[_10_Report_templates]Template_WRPRO.
I added 2 tables in it.
I wrote a table editor, so the attributes of a table can be changed after it
has been created.
For that to work, I need to get the table object in order to change it.
When I put the cursor inside one of the tables, I can get the selection and
then the table object that the cursor is in.
$range:=WP Get selection([_10_Report_templates]Template_WRPRO)
cTBLelements:=WP Get elements($range;wk type table)
cTBLelements[0] will have the table object.
This used to work until now… (4D v17, MacOS High Sierra)
Now, it either returns an empty object or always the first table, no matter
where the cursor is.
Did anybody have the same experience?
Overal, I have the impression that the start/end of a range is not always
correct…
Rudy Mortier
Two Way Communications bvba
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************