Please help with DoDialog code!

Discuss OrbForms Designer and PocketC Architect

Postby rogernc on Fri Apr 18, 2003 12:24 am

Hi, do you guys see any problems with this code that is triggered when I click a menu item?

handler miPrefs.onselect()
int nButton = frmPreferences.dodialog();

if( nButton == )
appPrefs.bSaveState = chkAppState.checked;
appPrefs.bInclusive = chkInclusive.checked;
chkAppState.checked = appPrefs.bSaveState;
chkInclusive.checked = appPrefs.bInclusive;

In my preference dialog I click my OK button but it does not go inside my if statement saying I clicked my OK button.. Any ideas? I have no idea, this should work. Thanks.

Roger C
Posts: 10
Joined: Thu Apr 17, 2003 10:56 am

Postby FrankG on Fri Apr 18, 2003 11:18 am


I copied your code into a test project and replaced the IF and ELSE paragraphs with simple alerts and it worked well for me. I changed the dialogue form back and forth between modal and not with no change in recognition. Maybe the simple things need a look: button name spelling, that kind of thing.

Not much help,
Posts: 210
Joined: Thu Jan 23, 2003 7:58 pm

Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 1 guest