:Revision=14
:html
<<
128.162
RegForm-Object|RegForm
--
The IP-Object RegForm enables the access to values enetered in the registration form. 

The data is addressed by the field name specified in the basic setup as 'IPName'; no difference is made between lower case and upper case.

The value of a field is always a string.
>>
<<
128.162.1
RegForm.Exists|Exists
--
<!DEF>
function <!TW>RegForm.Exists (sName : string) : real;
<!TXT>
Returns <!RW>TRUE, if there is a field with this name in the registration form. 
>>
<<
128.162.2
RegForm.Get|Get
--
<!DEF>
function <!TW>RegForm.Get (sName : string [; sDefaultValue : string]) : string;
<!TXT>
Returns the value of the field in the registration form. 

If the field does not exist, the default value is returned, and if the default value is not specified, a run time error is generated.
>>
<<
128.162.3
RegForm.Set|Set
--
<!DEF>
procedure <!TW>RegForm.Set (sName, sValue : string);
<!TXT>
Sets the value of the field <!PW>sName in the registration form to the value <!PW>sValue.

If the field does not exist, a run time error is generated.

For Check boxes: 
<!STBL>
<!><!PW>sValue='0' or<br> <!PW>sValue=''<!>not checked<!>
<!>everything else<!>checked.<!>
<!ETBL>
>>
<<
128.162.4
RegForm.Clear|Clear
--
<!DEF>
procedure <!TW>RegForm.Clear (sName : string);
<!TXT>
 <!PW>sName must designate a Combo-Box. The input list of this field is cleared.

If the field does not exist or is not a Combo-Box, then a run time error is generated.
>>
<<
128.162.5
RegForm.Add|Add
--
<!DEF>
procedure <!TW>RegForm.Add (sName, sItem : string);
<!TXT>
 <!PW>sName must designate a Combo-Box. The string <!PW>sItem is added to the option list of this field.

If the field does not exist or is not a Combo-Box, a run time error is generated.
>>
<<
128.162.6
RegForm.Store|Store
--
<!DEF>
procedure <!TW>RegForm.Store (sName : string [; sFile : string [; sSection : string]]);
<!TXT>
Saves the value of the field <!PW>sName from the registration form in the Inifile <!PW>sFile, in the section <!PW>sSection. In case of Combo-Boxes the option list is saved too.

 <!PW>sFile can be omitted or can be emty, in which case <!SW>'%SYS%/RegForm.Ini' is used automatically. If <!PW>sFile has no extension, <!SW>'INI' is attached. 

 <!PW>sSection can be omitted or can be emty, in which case <!PW>sName is used.

If the field does not exist, a run time error is generated.
>>
<<
128.162.7
RegForm.Load|Load
--
<!DEF>
procedure <!TW>RegForm.Load (sName : string [; sFile : string [; sSection : string]]);
<!TXT>
Loads the value of the field <!PW>sName in the registration form from the Inifile <!PW>sFile, section <!PW>sSection. In case of Combo-Boxes the option list is loaded too.

The <!PW>sFile can be omitted or can be emty, in which case <!SW>'%SYS%/RegForm.Ini' is used automatically. If <!PW>sFile has no extension, <!SW>'INI' is attached. 

 <!PW>sSection can be omitted or can be emty, in which case <!PW>sName is used.

If the Inifile or the section do not exist, then the field will be empty.

If the field does not exist, a run time error is generated.
>>

<<
128.162.8
RegForm.StoreDefault|StoreDefault
!128.162.3
--
<!DEF>
procedure <!TW>RegForm.StoreDefault;
<!TXT>
Saves the actual data from the user login as default. The actual data could be changed with the function RegForm.Set.
>>
