Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InputBox

Status
Not open for further replies.

trezlub

Programmer
May 2, 2003
67
GB
For some reason my inputboxes are being ignored by VB. I step over the code and the inputbox line is executed but it never appears on the computer screen. Code is

Dim response as string

response = InputBox(&quot;<some string>&quot;)

Does anyone know why this occurs?
 
&quot;. I step over the code and the inputbox line is executed &quot;

do u use F8 and do it?

is that the only code in the form?

Known is handfull, Unknown is worldfull
 
I do use F8 to step through it.

It is not the only code in the form, but I do not see how any other code could affect it. There is too much code to show within this thread. In debug mode the inputbox is completely ignored
 
does the F8 steps over the inputbox line or atleast is it highlighted (executed)?

Known is handfull, Unknown is worldfull
 
The F8 steps highlight the InputBox line and then (when pressing F8 again) VB moves on to the next line of logic without ever displaying the inputbox. The procedure within which it is buried contains an error handler but this is not executed so it appears that nothing has failed.

Its all very odd
 
o.k so commit a wanton error:
response = InputBx(&quot;<some string>&quot;)

see if it shows any error...

Known is handfull, Unknown is worldfull
 
what i meant was do a mistake purposfully and see if any error is thrown...

Known is handfull, Unknown is worldfull
 
Error handler has been tested and works fine
 
O.K what is ur project type(not that it makes a difference but still..)

Known is handfull, Unknown is worldfull
 
standard executable.

If you make the very first line of logic and inputbox it still does not work.
 
standard executable.

If you make the very first line of logic an inputbox it still does not work.
 
Arrghh!! The problem has been found. We are using VB with CodeSmart, and CodeSmart is stopping the inputboxes from displaying. Very strange but true.

Cheers for all your help on this one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top