Use this function to determine if a DAL symbolic variable exists. This can be useful because referencing a variable that does not exist will cause a runtime syntax error. You can use this function to verify that DAL variables which are created external to your script have been created before you try to reference them.
Exists (Symbol)
Parameter |
Description |
Symbol |
Specify the name of a DAL symbolic variable. This can be from an expression or from another string variable. |
The system returns (1) if the variable exists, otherwise it returns zero (0).
Here is an example. Assume the string variables 'tbl_1', 'tbl_2', 'tbl_3', and 'tbl_4' respectively contain: 'Ford', 'Chev', 'Olds', and 'VW'.
If Exists("tbl_" & #line) Then
Return ( GetValue("tbl_" & #line) )
Else
Return (" ")
End
In this example, if #line is set to 3, the string 'Olds' is returned. If #line is set to 5, a 'blank' is returned.
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.