What type of object does the axCWNE_TOTAL pointer reference? I believe you are calling the set_Text method on the wrong object. Furthermore, as mentioned earlier in this post and on
this forum, you do not need to call the set_Text method at all to update the value of a CWNumEdit control. You simply need to set the "Value" property for the variable associated with your control. This variable should be of type CNiNumEdit.
Follow these steps to create a CWNumEdit control that you can update:
1. Drag a CWNumEdit control onto the dialog from the Measurement Studio palette.
2. "Add a Variable" for this control and name it appropriately.
3. In your code, call
<control name>.Value = <new value>;
to update the value of your numeric edit control. The expected type of <new value> is a double, not a string.
I hope that helps!
Message Edited by Marty_H on
06-12-2008 09:57 AM
Regards,
Marty H.
National Instruments