Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Set the value of a CWNumEdit Control from within the code

I am trying to update a CWNumEdit Control with data created during program execution.  I am using the set_Text function but it does not seem to be working.  I was wondering if there is something that I am missing to get this functionality to work.  Please help.

I am developing a VS .NET 2003 WinForm GUI and am Using Measurement Studio 8.1.1.
0 Kudos
Message 1 of 5
(7,175 Views)
Hello mtd32610,

I noticed this question was already posted on this forum.  We like to keep all questions related to a single issue confined to one forum, so please direct all future replies to one post or the other.

As Jervin_J mentioned in the previous post, the standard method for updating a CWNumEdit control is to set the Value property of the CNiNumEdit object that is associated with this control.  You do not need to call the set_Text function, in fact I am not familiar with any set_Text function, so I think you may be calling this method on the wrong class altogether.

You should have an object associated with your CWNumEdit control that you can set the Value property for.  As mentioned in the reply from Jervin_J, the normal way to populate the control is to use:
<control>.Value = <numeric_value>;
Regards,


Marty H.
National Instruments
0 Kudos
Message 2 of 5
(7,156 Views)
I apologize for posting this similar question twice.  I have looked at the repsonse by Jervin_J and replied with some follow up information.  If you could take a look and maybe let me know if you have encountered a similar issue.  It makes no sense to me really and I am reaching my deadline.
0 Kudos
Message 3 of 5
(7,153 Views)
No problem.  I've posted a new response to the original post, that I think will resolve this problem.  Let us know if you have further difficulties.
Regards,


Marty H.
National Instruments
0 Kudos
Message 4 of 5
(7,144 Views)
Thanks for that explanation it is exactly what I needed to do.
0 Kudos
Message 5 of 5
(7,095 Views)