Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

QuickWin Control for entering Real number

cgdavila
Beginner
1,026 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
1,026 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