Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting value in data window

Status
Not open for further replies.

chedderslam

Programmer
Jun 16, 2008
24
US
In my main window I have a data window. I am trying to set a value in it:

datawindow dw_1
long ll_newrow
ll_newrow = dw_1.InsertRow(0)
dw_1.setitem(ll_newrow, "old_premuim", 100)

The control is "dw_1", dataobject d_results.
 

if you have a control in (for example) the window named dw_1, then You have no need to declare a local variable

this is what is you should delete of you code:

datawindow dw_1

regards,
Miguel L.
 
I don't believe you can declare a datawindow like that... You can assign a local datawindow a reference to one on the window. (don't quote me on that, but I believe it's what I read on a Google Group, so take it with a grain of salt)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top