Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to access Graphics on different PCs
Message
De
17/05/2001 05:26:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/05/2001 05:00:02
Edward See
Magicalogic Consultancy System
Quezon, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00508218
Message ID:
00508224
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform