Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5362

Using the ATTR_LABEL_TEXT and others

$
0
0

Hello all,

I am trying to complete an exercise to create a simple calculator. This calculator has all the number buttons and the simple math functions. The hard part is to use one function for the number saving which was asked to be done via string and then using atof() function to change it back to a float number (of ourse, the input has to be legitimate, otherwise, you can press the decimal point as many times as you want and then atof will give an error).

 

I gave the number buttons the tab order as their number, hence, zero is the first, one is second (given the tab number 1) and so on. I tried using both the ATTR_LABEL_TEXT and the ATTR_CTRL_TAB_POSITION ,but I don't understand what is the type that I get from these fields and how do I get these fields?

 

I tried doing this assignment with two string type that will save my first and second number, but I know I can do it with one string type and one float type and that way save some memory, but right now, I can't get the program to create any number using the method I described before.

 

I added my project and I'll be happy to get ideas and suggestions how to improve my program.

 

thanks for all the helpers!


Viewing all articles
Browse latest Browse all 5362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>