キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

how to read lowercase keys from ini file

Hi
I have a problem while reading the lower case keys from the ini file. When i'm using read key.vi  with with c as input it is returning the value for the key C...i.e the data for capital c. Can anybody suggest a solution to this..b'se i want to read lower case keys from the ini file.....
Thanks and regards in advance
AnishG
Certified LabVIEW Architect
0 件の賞賛
メッセージ1/7
4,021件の閲覧回数

Hi AnishG,

you can use the "to lower case" function.

Mike

0 件の賞賛
メッセージ2/7
4,020件の閲覧回数
Hi AnishG,

it's not possible to distinguish between upper and lower case key names!!!

In the "Read Key.vi" you can find a subvi "Config Data Get Key Value.vi". This vi is used to find the key and it's value. And this vi uses the "to lowercase" function to convert all key names to their lowercase variant...

You can distinguish between lower and upper case when not using the built-in config file vis. Read the ini-file as simple text and use your own string parsing...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ3/7
4,014件の閲覧回数
I did it................ i changed the upper to lowercase.vi in config.vi and i got the result......But thank you all for giving the support..thanks
Certified LabVIEW Architect
0 件の賞賛
メッセージ4/7
3,992件の閲覧回数
Hi AnishG,

I hope you made those changes only to a copy of the mentioned vi??? Never change vi.lib files, always make copies and change them!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
メッセージ5/7
3,987件の閲覧回数
Indeed. If you did change the VI that's distributed with LabVIEW, and you reinstall LabVIEW then you will find that your code will no longer work. If you copy your VIs to another computer you will also find that your code will not work since the change you made was to a VI that's distributed with LabVIEW.
0 件の賞賛
メッセージ6/7
3,969件の閲覧回数

Yes

I copied the code to my source code folder and changed the name of the vi s..... Read Key.vi changed to read key customized.vi...etc.

Thanks and Regards

Certified LabVIEW Architect
メッセージ7/7
3,951件の閲覧回数