INPUTBOX$() returns a null string if CANCEL is selected, therefore there is no way to differentiate between a NUL string and Cancel.
If you need better control over the return value then maybe you should consider building your own INPUTBOX-like function with the exact behavior you require...
IIRC, INPUTBOX$() works just like the VB equivalent...
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Announcement
Collapse
No announcement yet.
Undocumented INPUTBOX$
Collapse
X
-
What does INPUTBOX$ return when you select CANCEL?
Not a null string, I hope, as that could be a valid response.
------------------
Leave a comment:
-
-
Guest repliedThanks for the documentation, Lance, and the History, Dave. --Brad
-------------
-Brad Olson
mailto:[email protected][email protected]</A>
Leave a comment:
-
-
Why not to use MS Sans Serif in all cases?
As I understand, this font always supports national letters.
(Note, there are no problems with LABEL, TEXT and so on)
Leave a comment:
-
-
To the best of my knowledge, at this time PowerBASIC does not officially support non-US codepages for DDT, INPUTBOX$, etc, but this is on the "wish list" for future editions.
That said, keep throwing these suggestions at us! R&D do monitor these forums, and we are constantly passing feature requests to R&D. The more suggestions the better!
BTW, Vlad... you email address is bouncing mail... a BBS notification message just came back to Tech Support, and my email to you earlier this week came back also... please check into it, and email me when you get it resolved. Thanks!
-------------
Lance
PowerBASIC Support
( mailto:[email protected][email protected]</A> )
Leave a comment:
-
-
Thank Brad.
Good question !
INPUTBOX$ is suffer old kind bug
INPUTBOX$ don't conceive Cyrillic alphabet
example:
Result$ = INPUTBOX$("Ïðèâåò","Ñíîâà","Ïîêà")
I think - that know all "raisins" PBDLL ,need look
PBDLL in HEX format.
Regard
V.Shulakov
Leave a comment:
-
-
In the mean time, here is the doc's for INPUTBOX$()
Code:[b]Purpose[/b] InputBox$() displays a prompt in a dialog box and waits for the user to input text or cancel. It then returns the contents of the text box. [b]Syntax[/b] Result$ = INPUTBOX$(prompt$[[, title$], default$][, xpos%, ypos%]) [b]Remarks[/b] Prompt$ is the text prompt displayed in the dialog. Title$ is the caption for the dialog and is optional. Default$ is the default text displayed in the input box for the answer and is optional. Xpos% and Ypos% specify the location on the screen to display the input box. If not specified, the box is centered on the screen. [b]Example[/b] Result$ = INPUTBOX$("Enter your Name",, "Jane Doe")
Lance
PowerBASIC Support
( mailto:[email protected][email protected]</A> )
Leave a comment:
-
-
INPUTBOX$ has always been in PB/DLL, it was just accidentally left out of the documentation.
We'll have an update to the help file soon for everyone.
--Dave
-------------
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment:
-
-
Undocumented INPUTBOX$
Dear PB,
In PB/DLL 6.0 I discovered an undocumented function, INPUTBOX$. Is it
on its way out or on its way in?
Thanks,
Brad
-------------
-Brad Olson
mailto:[email protected][email protected]</A>
Tags: None
-
Leave a comment: