Can we display only integers / numbers through the message
box? Is there any constraint to do so?

Answer Posted / sachin

Message box can display both integer and string like we can
give
Msgbox 5
Msgbox "5". But really there is an issue with VB's message
box for the length. It can only display limited text. What
I mean is

If we concatenate a string to a very large string in a loop
(for eg selected items in a listview,grid etc) then if we
put this string in a message box like

msgbox strSelection . Then you will notice that half of
your string will be missing. So same will happen with
number but it doesn't make sense we ever having a large
number like that !

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it posible to Create Tables Through Querydef?

1840


Is it possible to call oracle database through ADO control or Object?

1590


Explain about manipulating the recordset object

748


Explain Default cursor Type and LockEdits type in RDO?

1674


Explain the working with task in Gantt chart view.

828


What is ActiveX Dll and ActiveX Exe?

1944


_____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol.

1498


Explain the "cursortype" and "Locktype" in VB?

4139


What is Parser Bug?

2082


How would you add column headers in listview control?

1853


How about Access 2.0 compatibility?

1220


How do I speed up control property access?

1204


Which type of object requires this object?

1761


How to use advanced data-bound controls.

866


Explain what is Visual basic?

777