VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Read Query-strings from ini file. Useful to import Postal Codes into tables. Requires one form and

Jan Lovfol  (1 Submission)   Databases/Data Access/DAO/ADO   VB 6.0   Unknown Difficulty   Mon 28th July 2003   Mon 8th February 2021

Read Query-strings from ini file. Useful to import Postal Codes into tables. Requires one form and one module (*.bas)

API Declarations


Private Declare Function GetPrivateProfileSection Lib "kernel32" Alias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long

'Get Section Data From <inifile>
Public Function GetSectionFromMini(SectionName As String, Filename As String, b_sData$)
On Error GoTo Proc_Err
Dim SectionData As String
Dim Length As Long
SectionData = String(9000000, 0)
Length = GetPrivateProfileSection(SectionName$, SectionData, 9000000, Filename)
b_sData = Left(SectionData, Length)
Proc_Exit:
Exit Function
Proc_Err:
MsgBox "Unexpected Error in Procedure GetSectionFromMini:" & CStr(Err.Number) & ":" & Err.Description
Resume Proc_Exit
End Function


Rate Read Query-strings from ini file. Useful to import Postal Codes into tables. Requires one form and (1(1 Vote))
Read Query-strings from ini file. Useful to import Postal Codes into tables. Requires one form and .bas

Read Query-strings from ini file. Useful to import Postal Codes into tables. Requires one form and Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters