>i have a field storing the path to a graphic image file.
>i use this field to display the image.
>this works fine if the imgImage.picture='f:c\ut\imagefile\ut.jpg'
>and the program is run on a work station and the exe shortcut is 'f:c\ut\ut.exe'
>it works fine
>but if exe shortcut is mapped as '\\server\ut\ut.exe' where 'f:c' folder is \\server then it does not display.
>seems like path with f:\ works fine but \\server does not.
>please advice, appreciate any suggestions
Edward,
Using sys(16,1) or Application.ServerName you could get path to exe ('\\server\ut\ut.exe').
lcEXEPath = sys(16,1)
lcAppRoot = substr(lcEXEPath,1,rat('\',lcExePath))
lcImagePath = lcAppRoot+'ImageFiles\'
imgImage.Picture = lcImagePath+lcImageName
Cetin