WordBasic programming error

Subject: WordBasic programming error
From: Dave Venzke <dven -at- CLEO -dot- COM>
Date: Thu, 28 Oct 1993 08:44:00 EDT

I tried to post this message from home last night, apparently without
success. My apologies if you receive it a second time.

>Patrick O'Connell <OCONNELL -at- DEV -dot- EICON -dot- QC -dot- CA> writes:
>If the words "Dialog Box description too complex" have a special
>meaning for you, and especially if you have detailed knowledge of
>how to make them go away, please do get in touch.

I'm not sure if I'm a WordBasic programmer or not, but Woody Leonhard
and Vincent Chen, authors of _Hacker's Guide to Word for Windows_, are.
Here's what they have to say on page 241:

"WinWord demands that you keep the number of characters in your custom
dialog boxes below an arbitrary maximum; otherwise you'll trigger a
WordBasic Dialog box description too complex error 503. Want to know if
your dialog box is an offender? Count all the characters in Text commands.
Add one for each character in the dialog box's title (remember that omitting
WindowTitle$ gives rise to a title of "Microsoft Word", 14 precious
characters). Then add one for each command between Begin Dialog UserDialog
and EndDialog (in Windows lingo, each command is a 'control'). That total
must remain below 512. Microsoft thinks of this as a design limitation.
We call it a bug -- one of the most frustrating bugs in WordBasic."

[ a paragraph omitted here ]

"There is a workaround to the 'Dialog box description too complex' error
message. It's a kludge, but it works every time. Instead of using a Text
command, use a TextBox. Then fill the TextBox before running the dialog."

[ Examples showing what doesn't work and what does follow ]

[ More information on creating workable dialog boxes ]

Everyone who is doing WordBasic programming should have this book. It is
800+ pages of no-holds-barred tips, techniques and commentary on WordBasic.
What works, and what doesn't. Highly recommended.

Hacker's Guide to Word for Windows
Woody Leonhard and Vincent Chen
Addison-Wesley Publishing Company, 1993
ISBN 0-201-63273-X (paperback)

Dave Venzke | All opinions expressed here are solely my
CLEO Communications | own. Any resemblance to opinions held by
3796 Plaza Drive | my employer is purely coincidental.
Ann Arbor MI 48108 |
(313) 662-2002, ext. 132 | Address: dven -at- cleo -dot- com

Previous by Author: Re: Word vs. Frame
Next by Author: Re: A Controversial Thought
Previous by Thread: Re: PhD's/Work Weeks
Next by Thread: PCOC 17 proceedings

What this post helpful? Share it with friends and colleagues:

Sponsored Ads