Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28381 Discussions

QuickWin Control for entering Real number

cgdavila
Beginner
672 Views
Seems simple, but I can't find the right control to allow a user to type in a real number. Edit boxes are used to enter character strings and the spin controls are for integers. Will I have to convert the string into a Real?
Thanks
0 Kudos
1 Reply
Intel_C_Intel
Employee
672 Views
you're right, I think, and use DlgGet function.
(in fact I'm not 100% sure but suppose it should work similarly to other languages. (in Delphi you read data as text and then use StrToFloat to convert it to real, for example).
I think that very instructive will be just to take a look at Examples with Temperature Dialog (DoDialog, actaully) (in Micheal Etzel's book - page 357) or Whizzy in Code Samples.

Artur
0 Kudos
Reply