Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Netfileclose
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00376642
Message ID:
00381425
Views:
24
>I have problems with netfileclose, I'm can't find what I'm doing wrong.
>This is the code I'm using
>thisform.txtserver.value is fileid that I get from netfileenum
>Sometimes I get returncode 123 and sometimes 53.

53 is "The network path was not found."

>DECLARE INTEGER NetFileClose IN "NetAPI32.dll" ;
>STRING cServer, ;
>INTEGER nFileID
>server=thisform.txtserver.value
>id=int(val(thisform.txtID.value))
>
>PS. where can I found the meaning of the errorcodes.
>I know from george what 123 means-->"The filename, directory name, or volume label syntax is incorrect."

The MS Visual Studio ships with a number of tools, one of which is the Error Code Lookup program. It's named ERRLOOK.EXE.

>Or is there another way to close open files on the network
>

>Thanks in advance
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform