Routine per aprire documenti da vb6 [santi caltabiano].txt blocco note

332 views

Published on

Routine per aprire documenti da vb6 [santi caltabiano].txt blocco note

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
332
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Routine per aprire documenti da vb6 [santi caltabiano].txt blocco note

  1. 1. Routine per aprire documenti da vb6 [Santi Caltabiano].txtROUTINE PER APRIRE/ESEGUIRE DOCUMENTI DA VB6Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVallpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) AsLong Apre documentoPublic Function openFile(ByVal filename As String, Optional ByVal winStyle AsVbAppWinStyle = vbNormalFocus) As Boolean If Not glo.FailOnError Then On Error GoTo ERRORE Visualizza lemail ShellExecute 0, "open", Chr(34) & filename & Chr(34), vbNullString,vbNullString, winStyle openFile = True Exit FunctionERRORE: openFile = False DetailError Me.Name, "openFile"End Function Pagina 1

×