vCOM Create Table

Brandon Warlick bwarlick at sunbelt-graphics.com
Wed Dec 13 11:28:06 CST 2006


I am experimenting with vcom using vb. When I create a db it is created on
the hard drive. When I attempt to open it with vStudio nothing happens. No
error, just no database appears after it is opened. 

Here is the test code:
      
    Dim V As New Valentina
    V.Init 10
    
    Dim Db As New VDataBase
    
    Db.Create "C:\temp\sample"
    
    Dim sql As String
    sql = "CREATE TABLE tbl1 ("
    sql = sql + "fldString string(20, 'ASCII') NOT NULL) "
    Debug.Print sql
    Db.SqlExecute sql
        
    V.ShutDown

Thanks,

Brandon



More information about the Valentina mailing list