- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
(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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page