Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MULTI-USER APPLICATION VS RESOURCE FILE

Status
Not open for further replies.

Maricus

Programmer
Mar 9, 2001
41
KE
Hello guys,

This is to all and also in particular Ramani (I am refering to thread182-575324 as well).

I recently converted my app to network version. it worked well until when I decided to add my kind of color picker to enable users change their own colors. The color set set ID would then be save inthe users file. So when the user logs on, the color set is default to that user's. In a multiuser enviro, the various resource files must be set to attribute Read only.

My Questions:
1. How do I disable Resource file and achieve this (in reference to your advice on thread182-575324)?
2. Whenever a user quits the 'color picker' screen, an error "Record is out of range(5)" results. How ro sole this?

Help guys.

Maricus
 
1. How do I disable Resource file and achieve this (in reference to your advice on Thread182-575324)?

add in config.fp(w)
resource=off
and in your main program
set resource off

You also could place the resource file(s) on the local pc's in the network
In that case in config.fp(w)
resource=c:\fp\localresourcefile
In the main program
set resource to c:\fp\localresourcefile

Your second question:
It looks like your color picker uses the resource file while the setting is NOT to use it...

Rob.

 
Rob,

Thank you for quick response. I think you misunderstood me. My application is multiuser developed in FP2.6aDOS. I hae to enable Resource File to allow setting of COlor sets in Resource file.
Each user has a unique resource file. When user logs on, Resource file is set to this, and Set color set is done to the set name stored in "Users.dbf" The color set name is found in Resource File.

This means, I want a method of not doing away with Resource file. how else?

Maricus
 
I think I did understand you.

If you set the resource files to read only nobody can "save" his/her preferred settings.
No setting of color sets will appear.

Why not use resource files on the local pc that runs the network app as I suggested in my first answer, without setting the read only attribute on the resource file(s)?
And...when you're useing local resource files, also use local settings for the config.fp progwork, sortwork and tmpfiles directories to improve performance.

Rob.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top