Home > Software engineering >  VB to read and write files, is the ini file, don't know can use API function
VB to read and write files, is the ini file, don't know can use API function

Time:11-12

Does anyone know how to add parameters in ini file? Is not in the ini file format, the second picture, I
The first picture is the VB interface, input file path point OK to display file content
Input to add a PDS and values, added to the PDS, the second picture is me inside the PDS array, added to be displayed in a taxi textbox, if add value for input, more output in the textbox "can not add,"
When added to determine whether a PDS array, numerous set is added directly, with an array of digital plus one,
I was so difficult that I really don't have a clue!

CodePudding user response:

Getprivateprofilestring
can

CodePudding user response:

https://blog.csdn.net/baidu_37503452/article/details/83274778

CodePudding user response:

Can point in detail, such as how to read the PDS array, the Parameter name and left to add eq name

CodePudding user response:

Since is standard, that can only be read by himself

CodePudding user response:

You this is not a standard.ini file, read write a line by line, according to the characteristics of judging what is data,
Then write several functions, such as:

Pivate function GetCmdA (byval file as string, byval secName as string, byval eveName as string) as a string ()
'it line by line read the file file
'judgment line=[secname] id find node
'if found nodes, the subsequent line find eventname=evename logo again when found the field
'if found fields, the follow-up to find line at the beginning of CMD/a=is saved to the returned array,
End the function
  • Related