Home > database >  Profilestring function call
Profilestring function call

Time:10-24

String ls_Buffer=Space (255)
String ls_appkey

Ls_buffer=GetCurrentDirectory ()

Ls_appkey=ProfileString (ls_Buffer + "\ dx ini", "appkey", "Name", "None")

Return ls_appkey

Dx. Ini the following
[appkey]
Name="bf1ab3cdf7b4c07f
"
But can't return bf1ab3cdf7b4c07f
Ls_buffer return path is the right
You kiss for me and see what was wrong with

CodePudding user response:

The

[appkey]
Name="bf1ab3cdf7b4c07f
"
Instead of

[appkey]
Name=bf1ab3cdf7b4c07f

Don't have a space, do not have quotation marks

CodePudding user response:

Fileexists again confirm file exists is sometimes suffix to hide

CodePudding user response:

Dx. Ini the following
[appkey]
Name=bf1ab3cdf7b4c07f

CodePudding user response:

Dx. Ini change to this
[appkey]
Name=bf1ab3cdf7b4c07f

CodePudding user response:

All answered
In fact you program for configuration files in the directory, it is not necessary to
Ls_buffer=GetCurrentDirectory ()
Ls_appkey=ProfileString (ls_Buffer + "\ dx ini", "appkey", "Name", "None")
Direct
Ls_appkey=ProfileString (" dx. Ini ", "appkey", "Name", "None")
It is ok
  • Related