Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Image in general field via program
Message
De
03/04/2007 20:05:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/04/2007 16:13:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Divers
Thread ID:
01211786
Message ID:
01211862
Vues:
12
>I have create a general field 'Mypicture' and have been able to insert and *.bmp file into it. However, I would like to insert the image via a program to allow the user to select from a dialog box and add the image themselves. So far, I have to open the general field and Edit->insert object- select "Create from file" and select the bitmap file to add.
>
>If there is a way to do this with a VFP command, it would be greatly appreciated.
>
>Thanks in advance,
>
>Craig

The reasons (I think) others replied recommending not to use general fields (I don't recommend them either), is mainly:

1) It is easy to get data into a general field. It is very tricky to get information back out again.
2) General fields take up too much space. A 50 KB JPEG (JPG) picture might make your database increase by more than a MB, for example.
3) With this size bloat, it is easy to pass the VFP limit, of 2 GB per file.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform