dcl-Grid-setCelltext with no result ...

Started by Peter2, January 29, 2024, 09:49:55 AM

Previous topic - Next topic

Peter2

With the open dialogue I tried this code:

Befehl: (dcl-Grid-GetCellStyle xdata_selector/xdata_selector/grid_single 1 1)
-1

Befehl: (dcl-Grid-SetCellStyle xdata_selector/xdata_selector/grid_single 1 1 6)
T

Befehl: (dcl-Grid-GetCellStyle xdata_selector/xdata_selector/grid_single 1 1)
6

Befehl: (dcl-Grid-setCelltext xdata_selector/xdata_selector/grid_single 1 1 "a")
nil

Befehl: (dcl-Grid-getCelltext xdata_selector/xdata_selector/grid_single 1 1)
""

I don't know why I can not set a text to my grid...
Any ideas?
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

Peter2

I found it ...

The Grid was totally empty, and I have to use some "ADD" commands to build the table before I can "SET" something ..
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10