Questions tagged [tinifile]

TIniFile is a Delphi class used for reading and writing ini files (*.ini). It's defined in IniFiles unit and derives from TCustomIniFile class which provides several ReadX and WriteX functions, each one specialized for reading/writing a specific type of variable, for example:

Read

  • ReadString
  • ReadInteger
  • ReadFloat
  • ReadDateTime
  • ...

WriteX

  • WriteString
  • WriteInteger
  • WriteFloat
  • WriteDateTime
  • ...
6 questions
6
votes
3 answers

is there a function or unit sames as TIniFiles that will not save to file?

I have a project that use Inifile for reading the data configuration. I decided to save the configuration to the resource. i would like to ask help if is there a Unit or function that same as Tinfile or related that saving the data config is…
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
2
votes
1 answer

TAction.OnExecute is not executed

I want to simplify a bit the saving of a form state to disk. I use my own INI file class derived from TIniFile to read the status of "all" controls present of form. Something like this: procedure TMyIniFile.Read(Comp: TComponent); begin if…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
1
vote
0 answers

TMemIniFile.Create hanging when called in ServiceStart

In a service running under system account the code below hangs in the TMemIniFile.Create without errors. If we replace it with TIniFile, it works fine. It's a Delphi Tokyo 10.2.3 Win32 app running under Windows Server 2012R2. There's no concurrent…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
0
votes
1 answer

DELPHI -how can i insert tlabeledit to dynamic tabsheet in TpageControl

i need to have this ini file which i mentioned it in my dynamic ttabsheet which i created it dynamically ! as you see ini file , it has three parts each start with 001-002-003 and then let those which start with 001 in first tabsheet , those start…
maxfido
  • 45
  • 5
0
votes
1 answer

C++ TStringsList parse explanation

I'm trying to read a ini file in a value listbox. Example below works, but i don't know why. ReadSectionValues contains a string list of ini lines. How does Rad Studio parse the lines with: ListValues->Names[i] is first part of the line and…
-4
votes
1 answer

How to use .Ini Files in FMX/Delphi

For a program I really need your help. I found a cross platform Delphi script to save and load INI files on devices, which was made for an earlier Delphi version. Now, here's my problem: It works perfectly fine on my Windows computer, but won't work…
user10794756