Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GETDIR() alternative? 2

Status
Not open for further replies.

jimstarr

Programmer
Feb 6, 2001
975
US
Is there a control (usable in VFP5) that would allow me to translate the button captions in GETDIR() (Select, Cancel) into different languages? Thanks!

Jim
 
No. (Unless you're using one of the localized runtimes for VFP, which would of course have them translated to that language.)

I believe the MSCommctrl has an equivalent, which would respect the Windows language.

If that's not enough for you, you'll probably have to build your own.
 
I believe the MSCommctrl has an equivalent

Try the ShowSave method of the Common Dialog class. This example is VBA but VFP syntax will be very similar:

[TT]
With CommonDialog
'-- Start in c:\ and show the Save dialog
.InitDir = "c:\"
.DialogTitle = "Export to Excel"
.ShowSave
'-- Did the user select a file name?
If .FileName = "" Then
MsgBox "Please enter a file name"
Else
'-- Put some code here to save the file
MsgBox "File saved as " & .FileName
End If
End With
[/TT]


Geoff Franklin
 
Thanks Geoff,

Where does this control give me access to the command button captions? -Jim
 
Geoff, your solution is interesting and could possibly work. But the customer decided to live with the untranslated command button captions. Thanks!

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top