|
-
Mar 30th, 2007, 10:23 AM
#1
Member
Re: text file to msflexgrid
add to vb6 references microsoft scriptting runtime
and create a module with this code
Public Const MAX_PATH = 260
Type FILETIME ' 8 Bytes
dwLowDateTime As Long
dwHighDateTime As Long
End Type
Type WIN32_FIND_DATA ' 318 Bytes
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
nFileSizeHigh As Long
nFileSizeLow As Long
dwReserved_ As Long
dwReserved1 As Long
cFileName As String * MAX_PATH
cAlternate As String * 14
End Type
Public Declare Function FindFirstFile& Lib "kernel32" _
Alias "FindFirstFileA" (ByVal lpFileName As String, lpFindFileData _
As WIN32_FIND_DATA)
Public Declare Function FindClose Lib "kernel32" _
(ByVal hFindFile As Long) As Long
Function FileFound(strFileName As String) As Boolean
Dim lpFindFileData As WIN32_FIND_DATA
Dim hFindFirst As Long
hFindFirst = FindFirstFile(strFileName, lpFindFileData)
If hFindFirst > 0 Then
FindClose hFindFirst
FileFound = True
Else
FileFound = False
End If
End Function
-
Mar 30th, 2007, 11:11 AM
#2
Thread Starter
Lively Member
Re: text file to msflexgrid
what function of microsoft scriptting runtime ??????
-
Mar 30th, 2007, 11:13 AM
#3
Re: text file to msflexgrid
 Originally Posted by junlo
what function of microsoft scriptting runtime ??????
Not a function, a reference.
From your IDE, click Project/References
Locate the Microsoft Scripting Runtime Library
Check the box next to it
Click Ok
-
Mar 30th, 2007, 11:16 AM
#4
Member
Re: text file to msflexgrid
you need to add
microsoft scripting runtime
is in the list
you need that to use file functions
Last edited by nf_vb; Mar 30th, 2007 at 11:18 AM.
Reason: error
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|