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

What is a thread pool and how are the threads within a thread pool managed?

1611


Explain the working of templates?

574


What is ODBC Direct and Microsoft Jet Database Engine ?

1476


What is Mask Edit and why it is used?

1448


What is the use of Active Control Property?

1469






How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX?

949


What is FireHouse Cursors?

1763


What is the use of Tabledef?

1559


Timer control contains ________ no. of events.

1743


How do I get a bitmap picture in a field in an Access database?

893


How would you create properties in ActiveX Control?

1437


What is visual basic used for?

555


How should dates be implemented so they work with other language and country formats?

957


what is use of book mark in excel ? send answer in my id ashishpal11@rediffmail.com

1736


Can any one please suggest which institute is providing Advance Excel & VBA Macros in Excel training in Hyderabad.

1743