visualbasic
asked on
Why use xml over ini files
I have just began a new project and have decided to use XML or XLS files to store project data instead of INI files.Should I stay with *.ini or should I change?? Which type should I use?? what is the difference between XML and XLS
when I read and write to an Ini file I use the following code.what do I use for XML or XLS?
Option Explicit
Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileString A" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpstring As Any, ByVal lpFileName As String) As Long
Public Function WriteIniInfo(FileName As String, AppName As String, KeyName As String, StringName As String)
Dim x As Boolean
x = WritePrivateProfileString( AppName, KeyName, StringName, FileName)
End Function
Public Function GetIniInfo(FileName As String, AppName As String, KeyName As String)
Dim A As String
Dim i As String
A$ = Space$(255)
i = GetPrivateProfileString(Ap pName, KeyName, "", A$, 300, FileName)
GetIniInfo = Left$(A$, i)
End Function
when I read and write to an Ini file I use the following code.what do I use for XML or XLS?
Option Explicit
Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA"
Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileString
Public Function WriteIniInfo(FileName As String, AppName As String, KeyName As String, StringName As String)
Dim x As Boolean
x = WritePrivateProfileString(
End Function
Public Function GetIniInfo(FileName As String, AppName As String, KeyName As String)
Dim A As String
Dim i As String
A$ = Space$(255)
i = GetPrivateProfileString(Ap
GetIniInfo = Left$(A$, i)
End Function
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi visualbasic,
This old question (QID 20558480) needs to be finalized -- accept an answer, split points, or get a refund. Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
This old question (QID 20558480) needs to be finalized -- accept an answer, split points, or get a refund. Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
I suspect the questioner mistyped and meant to write XSL.
Anthony