Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need quick input box
Message
From
06/07/1998 14:15:53
 
 
To
06/07/1998 14:09:57
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00114574
Message ID:
00114632
Views:
18
>>>I want to have a menu item to "Save data files to disk" in my application... an .exe developed in vfp5.0. I plan on using a pkzip command to zip the files to disk so the file can be scanned across disks if necessary due to file size.
>>>
>>>I need to ask the users if their floppy drive is A: or B: then use that drive letter in the pkzip command. What's the most efficient way to do this?
>>>
>>>MTIA!
>>>Mandy
>>Mandy,
>>
>>I would use a combobox with this in the init;
>>
>>
>> THIS.AddListItem("A:",1)
>> THIS.AddListItem("B:",2)
>>
>>
>>Make it a dropdownlist type.
>
>So I would have to create a form to put this in first? Is there a way to just run a command from the menu to just create a messagebox like object with the question "where is your floppy, a or b?" then use the resulting keystroke in the pkzip command? Can I use the "createobject" command to create a mini form 'box' for this? Am I really confused?? ;)
>
>Mandy

The simplest way is really to bring messagebox:
n=messagebox("Answer 'Yes' if floppy in 'A', and 'No' if floppy in 'B'",3)
Another simple way is to have three SET MARKed menu options.
Other ways are also simple enough, but here you should add some control to your form/toolbar, e.g., as Jim said, you can use combobox.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform