Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
USED() with non .dbf extension
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
USED() with non .dbf extension
Miscellaneous
Thread ID:
00276954
Message ID:
00276954
Views:
65
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!
Next
Reply
Map
View

Click here to load this message in the networking platform