Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Safety On
Message
From
29/03/2006 07:33:15
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
29/03/2006 07:17:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01108731
Message ID:
01108737
Views:
13
>I am exporting data to a csv file using STRTOFILE. I set safety on before i issue the command and it prompts me to overwrite if the file already exists.
>
>How do i trap the reply (ie. 'yes' to overwrite, or 'no' not to)?

You cannot. You need a function to return a value. That's why Borislav did this:

m.bOverwrite = (MessageBox([Overwrite?],4+32+256) == 6)
Previous
Reply
Map
View

Click here to load this message in the networking platform