• 搞笑的ini文件读取ReadSectionValues


    用fdconnection自动生成连接文本,将其写入ini文件,用于程序的读写。ini文件见后面。

        Lfini.ReadSection('LocalConnection',lstrings);
        ShowMessage(lstrings.Text);
        Lfini.ReadSections(lstrings);
        ShowMessage(lstrings.Text);
        Lfini.ReadSectionValues('LocalConnection',lstrings);
        ShowMessage(lstrings.Text);
        Lfini.ReadString('LocalConnection','User_Name','err');

    上面代码执行只有Lfini.ReadSections(lstrings);Lfini.ReadString('LocalConnection','User_Name','err');有结果值。其他是空值。你能告诉洒家为什么?死的心都有了。是否太搞笑

    ================================
    [LocalConnection]
    ================================这一行是致命行,知道why了吧!
    Database=E:程序开发Usegear_MVSDBUSEGEARMVS.FDB
    User_Name=SYSDBA
    Password=*****
    Protocol=TCPIP
    Server=192.168.1.78
    DriverID=FB
    
    [RometeConnection]
    ================================
    FireDAC info
    ================================
    Tool = RAD Studio 10.3
    FireDAC = 17.0.0 (Build 93731)
    Platform = Windows 32 bit
    Defines = FireDAC_NOLOCALE_META;FireDAC_MONITOR
    ================================
    Client info
    ================================
    Loading driver FB ...
    Brand = Firebird
    Client version = 205059900
    Client DLL name = C:windowsSYSTEM32fbclient.dll
    ================================
    Session info
    ================================
    Current catalog = 
    Current schema = 
    Server version = WI-V2.5.5.26952 Firebird 2.5
    WI-V2.5.5.26952 Firebird 2.5/tcp (Usegear-PC)/P12
    WI-V2.5.5.26952 Firebird 2.5/tcp (Usegear-PC)/P12
  • 相关阅读:
    单调队列和单调栈
    二叉搜索树(BST)
    高斯消元和高斯约旦消元 Gauss(-Jordan) Elimination
    扩展欧几里德算法
    基数排序
    智力题研究
    快速排序和快速选择
    快读模板
    C#知识点
    C#字段属性设置
  • 原文地址:https://www.cnblogs.com/usegear/p/13776756.html
Copyright © 2020-2023  润新知