Skip to content
EG Sigma Developer

EG Sigma Developer

  • GuidesExpand
    • Build your first app
    • Sample Code
    • Distribution
    • General
  • Support
  • Courses
  • EGDK
EG Sigma Developer
EG Sigma Developer

Build your first app

4
  • Build your first app – Overview
  • Preparing
  • Writing your code
  • Bundle

Distribution

6
  • Distribution – Overview
  • Distribution procedure
  • Package API
  • App Concepts
  • Sigma Bundle Files
  • Packages

General

3
  • API Reference
  • Getting Help
  • Custom Validation Rules

Sample Code

6
  • Sample Code – Overview
  • Export to CSV and Excel
  • Ini files
  • Basic webservices
  • Basic UI settings window
  • Auth2 tokens
View Categories
  • Home
  • Docs
  • Sample Code
  • Ini files

Ini files

< 1 min read

You may clone all examples from git at this repository: https://github.com/SigmaEstimates/AppScript-Examples.git

Learn how you can store App data in the end users roaming data profile. This enables you to create specific settings for your App, based on user interaction and configuration.

uses
  System.IO.Inifiles;

const
  //Inifile will be stored in %APPDATA%\CodeGroup\Sigma Install Folder Name\myinifile.ini
  sInifileName = '%sigma_currentuser%\myinifile.ini';

var Username: string;

procedure LoadSettings;
begin
  var IniFile := TMemoryIniFile.Create;
  try
    IniFile.LoadFromFile(sInifileName);
    Username := IniFile.ReadString('Userinfo', 'Username', '');
  finally
    IniFile.Free;
  end;
end;

procedure SaveSettings(Username: string);
begin
  var IniFile := TMemoryIniFile.Create;
  try
    IniFile.LoadFromFile(sInifileName);

    IniFile.WriteString('Userinfo', 'Username', Username);
    IniFile.SaveToFile(sInifileName);
  finally
    IniFile.Free;
  end;
end;

Username := 'TheUserName';
SaveSettings(Username);
Username := '';
LoadSettings();

showmessage(Username) ;

View this file on GitHub

Updated on May 7, 2019

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Export to CSV and ExcelBasic webservices

© 2026 EG Sigma Developer

  • Guides
    • Build your first app
    • Sample Code
    • Distribution
    • General
  • Support
  • Courses
  • EGDK