Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy memo fails if file exists
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01513136
Message ID:
01528602
Vues:
54
This message has been marked as a message which has helped to the initial question of the thread.
>>>>Copy memo contents to (lcTempFile)
>>>>ERASE (lcFile)
>>>>COPY FILE (lcTempFile) TO (lcFile)
>>>>
>>>>Would that still give an error?
>>>
>>>The file name is already unique and the path is supposed to be local path - ProgramData directory on user's machine.
>>>
>>>However, the user uses Citrix and I don't know how this fact contributes into the problem.
>>
>>I thought with this workaround you could better isolate the problem to the copy command, or alternatively use Filesystemobject to do the copying to the final destination.
>
>I already changed that code to use extra try/catch and sys(2015) + Application.ThreadID instead of sys(3) which was used before. Now I'm waiting for he client to test these changes to see, if they fix the error or not.

By the way, I use a GetGuid() function for unique file names, takes a lot of headaches away:
PROCEDURE GetGuid
*
LOCAL lcRetVal
*
LOCAL loGuid
loGuid = CreateObject("scriptlet.typelib")
lcRetVal = STREXTRACT(loGUID.GUID, "{", "}" )
*
RETURN lcRetVal
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform