Return the linking expression of a specified relation.
XSharp.Core (in XSharp.Core.dll) Version: 2.5
Syntax View Source
STATIC METHOD Relation(
nPos AS DWORD,
sRel REF STRING
) AS LOGIC
public static bool Relation(
ref string sRel
- Type: UInt32
The position of the desired relation in the list of current work area relations. The relations are numbered according to the order in which they were defined by relation setting.
- Type: String
TRUE if successful; otherwise, FALSE.
This function is like DBSetRelation().
This function, however, does not call the error
handler and will therefore not produce a runtime error message or create an error object if it fails.
Therefore it is important to check the return value to determine if the function succeeded.
The LastRddError property in the runtimestate
will contain needed information about any error that occurs.