vCOM Create Table

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Dec 13 20:08:22 CST 2006


On 12/06/13 9:28 PM, "Brandon Warlick" <bwarlick at sunbelt-graphics.com>
wrote:

Hi Brandon,

> 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

Try add

      db.close()
      db = nil  
         
>     V.ShutDown

Also try simply run
    Vcom/Examples/API/Table_CreateDrop
    Vcom/Examples/SQL/Table_CreateDrop
    

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list