The CloseTable attribute function closes the record. If a table variable loses its validity, a table opened in it is automatically closed.
Syntax |
CloseTable |
Return value |
None |
Parameter |
None |
Example:
Dim T As Table, V As Variant
T.Connection := DBCRM
T.Query := "SELECT * FROM TABLEA"
V := T.GetDataByFieldName("ID", "")
T.CloseTable
T.Query := "SELECT * FROM TABLEB"
V := T.GetDataByFieldName("ID", "")