PDA

View Full Version : Dialog IDs



NewsArchive
12-09-2008, 01:48 AM
Hi Friedrich,

One of the things that bugs me somethings are the Dialog IDs. The problem
is if you have code inside the "Loop Wizard" structure that looks like:

If %_SB_DIALOGID% Equals "5" Then
! Whatever
End

The problem comes up if you move things around in the user interface so now
the Dialog 5 is number 6. You then have to go through the code and make
sure that the IDs in your code now reflect the changes in the dialog order.

If the dialogs could be named instead of the IDE assigning numbers to them
it would help a great deal to avoid problems. Since I have code in the
wizard loop in just about every install I have, I very often run into the
"Arghhh, forgot to change the number in the IF statement" scenario.

Am I missing a better way to deal with this?

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
12-09-2008, 01:49 AM
Yes you are.
Name them!
The trick is that they become compiler constants.

For an illustration with a few screen shots, see my post of 7/22/08 in the
"Loop wizard and validation code" thread.

jf

NewsArchive
12-09-2008, 01:50 AM
> Yes you are.
> Name them!
> The trick is that they become compiler constants.
>
> For an illustration with a few screen shots, see my post of 7/22/08 in the
> "Loop wizard and validation code" thread.

Great minds...

:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
12-09-2008, 01:51 AM
You should be scared, Charles...
VERY scared <g>

Jane Fleming

NewsArchive
12-09-2008, 01:51 AM
> You should be scared, Charles...
> VERY scared <g>

LOL - well as long as one of us has a finger on the trigger...

:-)

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
12-09-2008, 01:52 AM
"finger outside the trigger guard until sights are on target!" <g>

Jane Fleming

NewsArchive
12-09-2008, 01:52 AM
> "finger outside the trigger guard until sights are on target!" <g>

But of course<g>

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
12-09-2008, 01:54 AM
The pics are small enough that I'll just post them again.

jf

NewsArchive
12-09-2008, 01:55 AM
Hi Jane,

> Yes you are.
> Name them!
> The trick is that they become compiler constants.
>
> For an illustration with a few screen shots, see my post of 7/22/08 in the
> "Loop wizard and validation code" thread.

THANK YOU! This has been a source of problems during testing in various
installs, but never enough to make me ask!

Best regards,


--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
12-09-2008, 01:56 AM
> If the dialogs could be named instead of the IDE assigning numbers to them
> it would help a great deal to avoid problems. Since I have code in the
> wizard loop in just about every install I have, I very often run into the
> "Arghhh, forgot to change the number in the IF statement" scenario.
>
> Am I missing a better way to deal with this?

Hi Arnor,

Just set the "Dialog Label" on the Advanced Tab and you can then refer to
it by that name rather than the (default) number.

See attached.

Does that help?

Charles




--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
12-09-2008, 01:57 AM
Arnor,

As usual for all of us <g> "read the docs" : all is there (as Jane mentioned
already)

Ah, the day we devs will read other devs docs ......

--

Thank you - Merci

Cordialement - Best Regards
Jean-Pierre GUTSATZ

DMC - Data Management Center - A tool to let you Migrate Import Export
Transfer all your Data very easily
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" & "Works with Windows Server
2008"