Subject |
Re: Problems with file() in db9.5 |
From |
Ken Mayer <dbase@nospam.goldenstag.net> |
Date |
Tue, 28 Jul 2015 16:16:35 -0700 |
Newsgroups |
dbase.getting-started |
On 7/28/2015 3:13 PM, jamesG wrote:
> Hi .
> I'm having a problem with this function in db9, it was working before but now i can't make it work. "
> if I do this:
> ---------------------
> sele select()
> use :ctmulti:company.dbf
> browse
> use
> It works no problem, but if I do this:
>
> ? file(":ctmulti:company.dbf")
>
> return false.
>
> does anybody have any idea?
>
> I'm stuck in this problem and i don't know if it is a bug or not, but in general db9 is kind of cumbersome, 2.8 was more friendly, specially the report generator in db9 is terrible. (OH!! that is a whole new post.)
I am not sure why you would expect the file object to understand a
database alias. Try this:
d = new database()
d.databaseName := "ctmulti"
d.active := true
? d.tableExists( "company" )
Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#dUFLP
dBASE Books: http://www.goldenstag.net/dbase/dBASEBooks.htm
|
|