>I am storing path of one image using character field vfp base table.
>
>Different clients in one local network can map the server of different ways and any client can store images on vfp table according the disk map defined by that user.
>
>So, if I am the user Antonio and I am mapping the disk where the images are stored like f:\..... the path image will be stored with this path. But If one second user have mapped the same disk like h:\.... he could not find the image.
>
>How to avoid this problem?
Hi there :)
You can construct path at run time.
So if your images are stored under let say
\\SomeMachine\myImages
you keep for EACH USER variable part of that path (in ini file ,txt ,dbf or whatever u use) - and then you construct full path at run time.
So in this organisation in the ini file you wld store variable part of the path - prefix or root if you want.
'\\SomeMachine'
'F:\'
'G:\'
.
.
or whatever are mappings.
And then at run time you wld simply construct path
by adding 'myImages' to whatever is the prefix path.
cRootPath = read_images_root_path() &&function u will build :)
cRealPath = addbs(cRootPath)+'myImages'
I am using this solution for databases as well.
Rgds++