ValueSet

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean ValueSet( SalString sSection,
		  SalString sEntry,
		  SalString sValue )

The ValueSet method writes a string value to the personal profile.

Parameters

Name Description
SalString sSection Name of section in which to write the value. The section name is combined with the entry name to form a unique key for the value to be written.
SalString sEntry Name of entry to write in the specified section.
SalString sValue Value to write into the specified section and entry

Returns

The return value is TRUE if the value was successfully written to the profile, FALSE otherwise.

Example

Call Profile.ValueSet ( sProfileSection, 'EnterToTab',
		       VisStrChoose( cbUseEnterAsTab, 'TRUE', 'FALSE' ) )
Call Profile.ValueSet ( sProfileSection, 'EnterToTab',
               VisStrChoose( cbUseEnterAsTab, 'TRUE', 'FALSE' ) )
C# code
Var.Profile.ValueSet(sProfileSection, "ColOrder", Int.PalArrayToString(sOrder, ","));
Var.Profile.ValueSet(sProfileSection, "ColWidths", Int.PalArrayToString(sWidth, ","));