Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access Graphics on different PCs
Message
From
17/05/2001 05:26:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/05/2001 05:00:02
Edward See
Magicalogic Consultancy System
Quezon, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00508218
Message ID:
00508224
Views:
20
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform