JVCL Help:TJvCustomAppStorage.WriteSet

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Stores a set (ignores sub stores).


Pascal

 procedureWriteSet(constPath: string; ATypeInfo: PTypeInfo; constValue);


Parameters

Parameters Description
const Path: string Path (relative to the current path) where the value is to be stored.
ATypeInfo: PTypeInfo A typeinfo pointer that describes the type of the Value parameter.
const Value Value to store.


Description

Write here a description
type

 TTest = (tstValue1, tstValue2, tstValue3);
TTestSet = setof TTest;


uses

 TypInfo;


function TForm1.ReadTestSet: TTestSet;
begin

 Result := [];
JvAppIniFileStorage1.ReadSet('SomePath', TypeInfo(TTestSet), Result, Result);
end;


procedure TForm1.WriteTestSet(const ATestSet: TTestSet);
begin

 JvAppIniFileStorage1.WriteSet('SomePath', TypeInfo(TTestSet), ATestSet);
end;


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page