|
|
|
|
- Example: Creating a view
- Example: Creating a view with a condition on a Numeric variable
- Example: Creating a view with a condition on a Character String variable
- Example: Performing a search on a composite key in a view
The following example is used to create a view and to read the records found in the view. These records are displayed in a trace window.
View1 is Data Source // Create view IF HCreateView(View1, Category, "*", "", "Caption>='B'", hViewAdd) = False THEN Error(HErrorInfo()) END // Browse view HReadFirst(View1) WHILE NOT HOut() // Read the caption item of View1 Trace(View1.Caption) HReadNext(View1) END HDeleteView(View1)
Example: Creating a view with a condition on a Numeric variable The following example is used to create a view with a condition on a Numeric variable.
EXTERN MyView // Create view IF HCreateView("MyView", FileName, "*", "", ... "ItemName =" + VariableName, hViewDefault) = False THEN Error(HErrorInfo()) END // Browse view HReadFirst(MyView) WHILE NOT HOut() // Process to insert HReadNext(MyView) END
Example: Creating a view with a condition on a Character String variable Example: Performing a search on a composite key in a view
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|