Re: puzzle
- Posted by "George Walters" <gwalters at sc.rr.com> Mar 13, 2004
- 555 views
Well, It's fixed itself. I went back to check the value of tmp as Irv suggested and removed the remark on the trace and it started working. I then removed the trace and it continued to work. I'm guessing XP might have been confused....I sure was. Thanks for the suggestions. george ----- Original Message ----- From: "I Mullins" <eugtk at yahoo.com> To: <EUforum at topica.com> Sent: Friday, March 12, 2004 12:30 PM Subject: RE: puzzle > > > George Walters wrote: > > > > > > Irv, > > The program runs and produces a txt file (it does this correctly in both > > cases). When it's running it should execute a "message_box" twice and > > display a message of "customer not on file". The trace shows that it > > gets to > > the message_box statement, but no message box appears when run from the > > menu > > but does when from Crimson Editor. At the end of the program it "system" > > commands to run a program which will display the txt file. This system > > command gets an error code of -1 when run from the menu but gets a 0 > > when > > from the editor. > > > > Here's the code that should display a message box. > > > > if EOF[arCustomer] then > > --trace(1) > > tmp = message_box("Customer "& str(customer) & " has open items but > > is not on file.", > > "",0) > > nextCustomerNbr = customer + 1 > > return > > else > > > > It might be interesting to examine the value of tmp after this call - > according to the docs, " ... A return value of 0 indicates a failure to > set up the window. " > > I don't know *why* there could be such a failure, but this would be > the first step in finding out. > > Regards, > Irv > > > > For Topica's complete suite of email marketing solutions visit: > http://www.topica.com/?p=TEXFOOTER > >