I want to insert text and apply formatting to individual cells in a WP
table.
Here's my test code:

        $WPRange:=WP Create range(wpTablePreview;wk start text;wk end text)
$WPTable:=WP Insert table($WPRange;wk replace;wk include in range;2;1)
$cell:=WP Table get cells($WPTable;1;1) // column 1, row 1
WP SET TEXT($cell;"Body";wk replace) // gives error: "This kind of argument
was not expected here"
WP SET ATTRIBUTES($cell;wk background color;Blue)

The table is drawn with two empty cells. The first cell should have a blue
background, but it doesn't.
What am I doing wrong?

Pat

-- 
*************************************************
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to