eed
12-23-2004, 08:02 AM
Hi, all,
Is there a way (I don't know, using API or something?) to determine whether the current database file is marked as read-only? I'm having issues with a customer trying to run a tool off CD (which of course means it's read-only).
When any one specific operation fails, I can react with a specific error-handling message. But for concision's sake, I would like to just put something in the Form_Load event of my main switchboard to say, "If this database file is read-only, give the user this reminder message that the file will not run all its functions properly, and that the user should save the file to an updatable location and change its read-only property."
So... what would be the syntax to make my code ask Windows whether the file's Read-Only property is set? Thanks in advance for any thoughts!!
~ eed
Is there a way (I don't know, using API or something?) to determine whether the current database file is marked as read-only? I'm having issues with a customer trying to run a tool off CD (which of course means it's read-only).
When any one specific operation fails, I can react with a specific error-handling message. But for concision's sake, I would like to just put something in the Form_Load event of my main switchboard to say, "If this database file is read-only, give the user this reminder message that the file will not run all its functions properly, and that the user should save the file to an updatable location and change its read-only property."
So... what would be the syntax to make my code ask Windows whether the file's Read-Only property is set? Thanks in advance for any thoughts!!
~ eed