Programmatically Check Table Properties Sample
Visual FoxPro 9.0 SP2 |
Programmatically Check Table Properties Sample |
See Also |
File: ...\Samples\Solution\Db\Info.scx
This sample illustrates retrieving information about a table at run time.
Field Information
The AFIELDS( ) function provides most of the information about table fields displayed in this sample. In addition to the information displayed in this sample, AFIELDS( ) provides information about field and table validation expressions and messages, trigger expressions and messages, as well as long table names and table comments in the database.
Index Information
The TAG( ) and KEY( ) functions provide index information.
![]() | |
---|---|
lo = THISFORM.edtProperties FOR i = 1 TO TAGCOUNT( ) IF !EMPTY(TAG(i)) && Checks for tags in the index lo.Value = lo.Value + TAG(i) + " " + KEY(i) ELSE EXIT ENDIF ENDFOR |
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic