Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT!
Message
De
12/03/2001 03:14:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/03/2001 02:36:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00469767
Message ID:
00483973
Vues:
8
>>You've told us that file(dbf()) returns .F. What does dbf('aliasofcursor') return?
>
>I Can't remember exactly.. but it's in the form of
>c:\temp\xxxxxxxx.tmp
>
>But if you look in explorer that file does not exist

Will,
I won't go into discussion on this subject but all I can say neverthless how small might be the cursor and fit into memory (even the smallest possible with one record and only one logical field) it is created on disk (or should I say handle reserved). file() returning .F. or explorer not showing it doesn't mean it is not there. You can think of it as a file opened for copy but copy not finished yet. IOW if it has a name say xxx.tmp you can't create another file with xxx.tmp. You can test with a code like this :
create cursor mytest (dummy l)
insert into mytest values (.F.)
select * from mytest into cursor myCursor nofilter
lcFile = dbf('myCursor')
? file(lcFile)
handle = fcreate(lcFile)
? handle, ferror()
use in 'myCursor'
use in 'myTest'
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform