YesNo problem again

Barry Kahn barryk at caravanbeads.net
Wed Apr 30 16:47:08 PDT 2008


Sorry, Mail no longer seems to let me cut and paste without losing  
formatting. Here's the question again:

I'm sending some array output to a second database and would like to  
have a dialog to select whether to append to or replace the data in  
the target db.

I have this:

yesno "Add to existing data? (No will replace)"
if clipboard() contains "Yes"
call AppendToFile
else
call ReplacetheFile
endif	

AppendtoFile is this:

OpenFile "DB_9 all_items"
Window "DB_9 all_items"
OpenFile "+ at theExportText"

and the ReplacetheFile replaces the + with &.


When I run it, I get "Sorry, the file won't open" --
although the target DB does become the front window.
Suggestions very welcome--as usual, I bet it's something
simple.

Thanks,
bk




Barry Kahn
Caravan Beads, Inc.
915 Forest Ave
Portland ME 04103
800-230-8941
fax: 207-874-2664
www.caravanbeads.net
barryk at caravanbeads.net





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://provue.com/pipermail/qna/attachments/20080430/31572edd/attachment-0001.html 


More information about the Qna mailing list