1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
5 #include "SettingsObject.h"
7 // --- VERSION 1.0 CLASS
9 // --- MultiUse = -1 'True // True
10 // --- Persistable = 0 'NotPersistable // NotPersistable
11 // --- DataBindingBehavior = 0 'vbNone // vbNone
12 // --- DataSourceBehavior = 0 'vbNone // vbNone
13 // --- MTSTransactionMode = 0 'NotAnMTSObject // NotAnMTSObject
16 // static char *VB_Name = "SettingsObject";
17 // static boolean VB_GlobalNameSpace = False;
18 // static boolean VB_Creatable = True;
19 // static boolean VB_PredeclaredId = False;
20 // static boolean VB_Exposed = False;
22 // --- Option Explicit
23 // --- Option Compare Text
27 const char *AppName = "MegaPlex";
28 const char *Config = "Config";
30 void SettingsObject_Save(char *ValName, int Val)
32 SaveSetting(AppName, Config, ValName, Val);
35 int SettingsObject_Read(char *ValName, int Default)
39 Read = GetSetting(AppName, Config, ValName, Default);