CREATE CLASS (lcCLass) OF (lcLib) AS CA_Base FROM (lcLib) NOWAITyou could add this code (sample)
* If lWriteShema is .T. create a DBC and Table IF THIS.lWriteSchema THIS.Cr8_Create_Table(lcClass, THIS.cSchema) ENDIFand add this procedure to the code
PROTECTED PROCEDURE Cr8_Create_Table LPARAMETERS lcClass, cSchema IF !FILE("DBC_CA.dbc") CREATE DATABASE DBC_CA && could be better (change the name of DBC !) ENDIF * Init from Schema npos = AT('2',cSchema) + 1 cSchema = SUBSTR(cSchema, npos) comprimento_cSchema = LEN(cSchema) * End from Schema npos2 = AT('ENDTEXT', cSchema) - 1 cSchema = SUBSTR(cSchema,1, npos2) cSchema = STRTRAN(cSchema,CHR(13),"") cSchema = STRTRAN(cSchema,CHR(10),"") * Creates the table in the DBC IF !DBUSED("DBC_CA") OPEN DATABASE DBC_CA ENDIF x = "CREATE TABLE " + (lcClass) + " (" + cSchema + ") " &x. ENDPROC