Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USED() with non .dbf extension
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
USED() with non .dbf extension
Divers
Thread ID:
00276954
Message ID:
00276954
Vues:
64
Ok, this might seem wierd but,

I have a file on disk call 'MyFile.cnv'. It's just a VFP table with a wierd extension. In a method I have:

cTableName = 'c:\MyFolder\Myfile.cnv'
THISFORM.cFile = JUSTFNAME(cTableName)
cStem = juststem(thisform.cFile)

Now, if I use the table in the default DataSession. Run my form (it has a private datasession), and call that method all of the following return .F.

used(cTableName)
used((cTableName))
used(juststem(thisform.cFile))
used(thisform.cFile)
used((thisform.cFile))
used(cStem)
used((cStem))
used(dbf( any of the above )) fails with a 'No Alias found' error.

Shouldn't at least 1 of the above return .T.

The only workaround I could find was trying to open it with LLFF

x = fopen(cTableName)
if x = -1
? 'open'
else
? 'not open'
endif

Anybody have any ideas?
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform