The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 exist function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mike Buess

USA
3037 Posts

Posted - 03/30/2001 :  07:06:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
The Origin 6.1 SR1 release notes state that exist(filename,n) will return the version number or date of a dll file depending on the argument 'n'. (According to the note 'n' should be 1-5.) I'm using SR2 and exist(%YAny.dll,n) just gives me the file size of Any.dll regardless of the value of n. Was this usage of the exist() function broken in SR2 or am I using it incorrectly myself?

-Mike

greg

USA
1379 Posts

Posted - 03/30/2001 :  12:55:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Oops!

This is a case of a specification getting copied to a release note without a reality check. The actual work done was to make sure developers of OPK tools could check to see if a file exists (in which case the function returns the file size in kilobytes) or not (in which case the function returns -1). This is the only feature that has been implemented as of 6.1.

The part in the specification about version and date was moved to a new specification for a more general means of getting information about files. Look for this in a future version of Origin.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000