Skip to content

In Text.Ini the command TSection.Get() does not work correct #56

@MidimasterSoft

Description

@MidimasterSoft

It looks like TSection.Get() does not work as expected in cases where the property is a "" (empty string)

When I store the empty string to an INI file, the key exists.

' INI.File:
....
[Seite1]
Name=
...

But when I now try to read back the empty string, I get a NULL:

Function GetName (Section:TIniSection, Key:String)
     Local Name:String = Section.Get(Key)
     if Name=NULL Then runtimeerror "no such key"
     Print "!" + Name+ "!"

I would expect to get back an empty string, but I receive a Runtime Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions