OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Peter2 on January 29, 2024, 09:49:55 AM

Title: dcl-Grid-setCelltext with no result ...
Post by: Peter2 on January 29, 2024, 09:49:55 AM
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?
Title: Re: dcl-Grid-setCelltext with no result ...
Post by: Peter2 on January 29, 2024, 09:59:45 AM
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 ..