Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keep filename case / PutFile
Message
De
11/08/2009 07:55:23
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01417254
Message ID:
01417282
Vues:
66
Thank you Sergey.

7518s

Agnes
>Hi Agnes,
>
>You can try the Common Dialog Control. The code below is for demonstration purpose only. See Appropriate license for this class not found error at runtime
>
>
>oDlg = Createobject("PutFileEx")
>? oDlg.PutFile()
>
>DEFINE CLASS PutFileEx AS form
>	Left = 100   && Set Dialog Position by positioning the form
>	Top = 100    && Set Dialog Position
>	Name = "PutFileEx"
>	DoCreate = .T.
>	Visible = .F.
>	cFileSelected = ""
>	lUserCancel = .F.
>	
>	ADD OBJECT oCDC AS OleControl WITH ;
>		OleClass = "MsComDlg.CommonDialog"
>
>	PROCEDURE oCDC.Init
>		This.CancelError = .T. 	
>	ENDPROC 	
>
>	PROCEDURE Error
>		LPARAMETERS nError, cMethod, nLine
>		IF nError = 1429
>			This.lUserCancel = .T.
>		ENDIF
>	ENDPROC 
>
>	PROCEDURE PutFile(tnInitColor)
>		Thisform.oCDC.ShowSave()
>		IF This.lUserCancel
>			This.cFileSelected = ""
>		ELSE	
>			This.cFileSelected = Thisform.oCDC.FileName
>		ENDIF
>		RETURN This.cFileSelected 				
>	ENDPROC 	
>ENDDEFINE
>
>>
>>is there a way to use something like putfile that keeps the casing of the filename?
>>
>>PUTFILE always returns uppercase, what is a bit boring.
>>
>>TIA
>>
>>Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform