Home > database >  PB10.5 how to invoke the INI file variable
PB10.5 how to invoke the INI file variable

Time:10-14

Example: I wrote a day in the INI file code=4444, then I wrote fields in PB program in SQL select * from table where code=: code; This is used directly, or where need to set the can?

CodePudding user response:

Example: I wrote a code in the INI file=4444, then I wrote a in PB program in SQL select * from table where code=: code; This is used directly, or where need to set the can?

CodePudding user response:

Need to use the first read ini value to a variable

CodePudding user response:

refer to the original poster angel7007 response:
, for example: I wrote a day in the INI file code=4444, then I wrote fields in PB program in SQL select * from table where code=: code; This is used directly, or where need to set the can?


-- -- -- -- --
Using ProfileString read code value, use the following
These examples use a file called PROFILE. INI, which contains the following lines. The Quotes around the string values in the INI file are optional:

[Employee]

Name=Smith



(Dept)

Name=Marketing

This statement returns the string contained in keyword Name section in the Employee in the file C: \ PROFILE INI and returns None if there is an error, in the example, the return value is Smith:

ProfileString (" C: \ PROFILE INI ", "the Employee", & amp;

"Name", "None")

CodePudding user response:

With reference to the upstairs, need to remove the profile section of the data, and then to your statement variables

CodePudding user response:

Define a global variable string gs_code, then apply the open event of remove the code to assign a value from the ini file to gs_code, ProfileString to use this function, and then reference gs_code this variable
  • Related