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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MsgBox/Form Problem - Conditional Statements

Status
Not open for further replies.

PaultheS

Programmer
May 12, 2005
92
CA
I posted earlier about a problem I had with MsgBox only allowing 1024 characters. Someone suggested using a form, but part of the problem is the message to be displayed has some conditional statements, like...

"You are going to send <this>.

(If make default is set to true) You are going to change the default to <that>.

(If another setting is set to true) You are going to..."

This is easy with a MsgBox statement, because I can just make a String and add things to it if the conditions are true, and otherwise, not add them; the problem is that the values of <this> and <that> can reasonably contain a larger number of characters which would not be supported by a MsgBox.

Any suggestions about the easiest way to do this? Is it still reasonable to use a form for this problem?
 
I don't see what you can do with a MsgBox you can't with an unbound TextBox in a form ...
 
True enough, good point.

I don't like the look as much, but I guess I'm going to have to suck it up and use a form.

Thanks for the help PHV, you always seem to be the first to jump on my questions...
 
Hi, PaultheS,
I don't like the look as much
You can create a form that looks and behaves exactly like a MsgBox - but with the added flexibility a form gives.

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top