SYS(2029) - Tabellentyp
Gibt einen Wert entsprechend dem Tabellentyp zurück.
SYS(2029 [, nWorkArea | cTableAlias])
Rückgabewerte
Zeichen
Parameter
- nWorkArea
Gibt den Arbeitsbereich an, in dem die Tabelle geöffnet ist. - cTableAlias
Gibt den Alias der Tabelle an. Ohne Angabe von nWorkArea und cTableAlias gibt SYS(2029) einen Wert für die Tabelle zurück, die im aktuellen Arbeitsbereich geöffnet ist.
Hinweise
In der folgenden Tabelle sind die Werte aufgelistet, die von SYS(2029) zurückgegeben werden, sowie der jeweils zugehörige Tabellentyp.
Rückgabewert | Tabellentyp |
---|---|
0 | Keine Tabelle geöffnet |
3 | Frühere Versionen von FoxPro, FoxBASE+, dBASE III PLUS und dBASE IV ohne Memofeld |
48 | Visual FoxPro mit bzw. ohne Memofeld |
67 | dBASE IV SQL-Tabelle ohne Memofeld |
99 | dBASE IV SQL-Systemtabelle mit Memofeld |
131 | FoxBASE- und dBASE III PLUS-Tabellen mit Memofeld |
139 | dBASE IV-Tabelle mit einem Memofeld |
203 | dBASE IV SQL-Tabelle mit einem Memofeld |
245 | Frühere FoxPro-Versionen mit einem Memofeld |
Beispiel
Im folgenden Beispiel wird die Tabelle customer
in der Datenbank testdata
geöffnet.
CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'Data\testdata')
USE Customer && Open customer table
CLEAR
DO CASE
CASE SYS(2029) = '3'
? 'Previous versions of FoxPro'
CASE SYS(2029) = '48'
? 'Visual FoxPro Table'
CASE SYS(2029) = '67'
? 'dBASE IV SQL table, no memo fields'
CASE SYS(2029) = '99'
? 'dBASE IV SQL System table with a memo field'
CASE SYS(2029) = '131'
? 'FoxBASE+ table with a memo field'
CASE SYS(2029) = '139'
? 'dBASE IV table with a memo field'
CASE SYS(2029) = '203'
? 'dBASE IV SQL table with a memo field'
CASE SYS(2029) = '245'
? 'Previous versions of FoxPro with a memo field'
ENDCASE
Siehe auch
ALTER TABLE - SQL | CREATE-Befehl | CREATE TABLE – SQL-Befehl | USE-Befehl