Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Small messagebox bug (?)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2007, 11:16 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
Default Small messagebox bug (?)

At least I think it is a bug (a small one)

if msgbox("Exit?","Title", cMsgboxYesNo, cMsgboxQuestion) = cNo then Form1.CancelClose

gives the choice of answering yes or no, while:

if msgbox("Exit?", cMsgboxYesNo, cMsgboxQuestion) = cNo then Form1.CancelClose

(with no title) just gives an ok button

Björn
Reply With Quote
  #2 (permalink)  
Old 05-24-2007, 11:36 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

You can't omit the second argument if you are using the third argument.
You should write:
if msgbox("Exit?","", cMsgboxYesNo, cMsgboxQuestion) = cNo then Form1.CancelClose
Reply With Quote
  #3 (permalink)  
Old 05-24-2007, 12:35 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
Default

And so I have learnt something new today...

Björn
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
a small problem..... Ricky D Questions & Help Needed 2 10-25-2008 09:53 AM
Small stopwatch token Share Your Creations 29 10-09-2008 04:23 PM
Small notetrainer token Share Your Creations 1 07-28-2008 01:45 AM
Small math-trainer token Share Your Creations 3 07-17-2008 07:29 PM
hypertext in MessageBox klaus Questions & Help Needed 2 12-25-2007 06:09 PM


All times are GMT. The time now is 04:11 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0