QuickWin Control for entering Real number

QuickWin Control for entering Real number

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

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Community Admin

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

Melden Sie sich an, um einen Kommentar zu hinterlassen.