DataServer.NoIVarPut Method | |
Provide a general error interception that is automatically called (in any class) whenever an assignment reference is made to a non-existent exported instance variable. In the DataServer class, it is used to implement the virtual field variable.
Important! NoIVarPut() should not be called directly; it is called by the system for handling invalid references.
Namespace:
VO
Assembly:
VOSystemClasses (in VOSystemClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD NoIVarPut(
symFieldName,
uValue
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual NoIVarPut(
Usual symFieldName = default,
Usual uValue = default
)
Request Example
View SourceParameters
- symFieldName (Optional)
- Type: Usual
The symbolic name of the variable that was referenced. In the standard usage of the method with the DBServer class, this is a field name. - uValue (Optional)
- Type: Usual
The value to be assigned to the field. The data type of this value must match the data type of the field.
Return Value
Type:
Usual
TRUE if successful; otherwise, FALSE.
Remarks
When executed successfully, this method sends a NotifyFieldChange message to this data server's clients.
For DataServer, this method is used to intercept references to field names as exported variables, which ordinarily would not be allowed. If the field name is valid, it does a DataServer:FieldPut() for the corresponding field name with the passed value (in effect, turning database fields into assign methods of each DBServer object). See "Objects, Classes, and Methods" in the Programmer's Guide for more information on NoIVarPut().
See Also