Olaan Expert Licensed User Longtime User Jan 23, 2023 #1 Hi all, I have learned about TiniFile class . But I have problem,why it doesn't return the correct value for me? Attachments B4AReadIniFile.zip B4AReadIniFile.zip 11 KB · Views: 385
Hi all, I have learned about TiniFile class . But I have problem,why it doesn't return the correct value for me?
teddybear Well-Known Member Licensed User Jan 23, 2023 #2 There are 2 issues in your inimoneyinfo.ini 1. The file encoding is BOM+UTF-8. you will not read the [section]. you need to save as UTF-8 or ANSI encoding 2.The PromptPayID =123456789 makes the key "PromptPayID " it has a space, you will not get the value of PromptPayID. you need to remove the space front of =. Last edited: Jan 23, 2023 Upvote 0
There are 2 issues in your inimoneyinfo.ini 1. The file encoding is BOM+UTF-8. you will not read the [section]. you need to save as UTF-8 or ANSI encoding 2.The PromptPayID =123456789 makes the key "PromptPayID " it has a space, you will not get the value of PromptPayID. you need to remove the space front of =.
Olaan Expert Licensed User Longtime User Jan 24, 2023 #3 My problem can solved by Erel' s strategy.Thank you all of your replies. Upvote 0