Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY SDF to the memory variable
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00537356
Message ID:
00537418
Vues:
16
>>>How can I get the same result as
COPY SDF TO Myfile.txt
>>>lcStr = Filetostr(Myfile.txt)
w/o writing to file and reading back.
>>
>>You can use low-level functions, but it would be more commands, than these two. On the other hand, you would not create a temp file...
>
>Can you explain?
pseudo-code (from the top of my head)
local lnHandle
lnHandle=fopen('MyTable')
do while not feof(m.lnHandle)
   lcStr=m.lcStr+fread()...
enddo
Anyway, this would not work in case of cursor. SELECT SQL probably would not work either, since it doesn't create SDF file...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform