[VCOM] Property error
Ruslan Zasukhin
sunshine at public.kherson.ua
Sun Jan 18 22:14:09 CST 2004
on 1/18/04 10:07 PM, Lee Miller at leemiller at madisongrp.com wrote:
Hi Lee,
> Here is the code
>
> Dim Db As VDataBase
> Dim CountOfTables As Long
> Dim sTableName As String
> Dim i As Variant
> Set Db = CreateTestDb
> If Not Db Is Nothing Then
> 'Load list of tables into MSFlexGrid2
> i = 1
> CountOfTables = Db.BaseObjectCount
> sTableName = Db.BaseObject(i)
>
> At the line CountOfTables = Db.BaseObjectCount, it returns the correct
> value, 2.
>
> The next line gives the following error
>
> "Object doesn't support this property or method."
>
> Isn't this how you locate the name of each table in a database?
May be you need Db.BaseObjectCount()
^^^^^
Visual BASIC sometimes need (), sometimes no.
PS:
Please use in the subject
[VCOM] Property error
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list