Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying file types
Message
 
À
18/04/2002 23:59:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00646761
Message ID:
00646868
Vues:
10
>I wish I new the correct verbage for this one, but here goes.
>
>I need to display file icon types and the rspective file description.
>
>ie: Let us say I have a table with 2 records in it,
>record "a" has the path of Word document (Larry1.doc)
>record "b" has the path of Pdf file (Linda.pdf)
>
>I need to display these 2 files as icons in the form.
>
>Pretty much, like when you attach a Word Doc to an email, the attachment is identified by its file type, description and path.
>
>Like I said I wish I new the correct terminology for this one.
>
>Thanks in advance
>
>Larry

Hi Larry,

Where in the form are you going to show these icons? In the grid?
If the number of file types is limited, you might just have these icons grabbed as pictures (BMP or JPG), add them to your app and show the appropriate picture with something like
IF UPPER(JUSTEXT(myfilepath)) = "DOC"
   imagecontrol1.picture = "DOC.BMP"
ELSE
   imagecontrol1.picture = "RTF.BMP"
ENDIF
If you want to show them in the grid you should use the trick with one of Dynamic... properties calling the UDF whih will change the picture on the fly, like it described in FAQ#7934
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform