Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove picture in General Field
Message
From
28/02/2007 01:41:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Remove picture in General Field
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01199433
Message ID:
01199433
Views:
56
Hi,

I normally followed Mr.Ken's suggestion regarding the large amount images. As far as staff is concerned I use general field to store image of the staff, I can store the image, but how can I remove it. Please guide.

The code for image store is:

LOCAL lcFileName

lcFileName = GETFILE("JPG", this.Caption, 'Add Picture')

IF !EMPTY(lcFileName)
This.Parent.ImgPicture.Picture = lcFileName
APPEND GENERAL Picture FROM (lcFileName)
Thisform.Refresh()
ENDIF

And, for removing I use the code like ..

This.Parent.ImgPicture.Picture = ' '
REPLACE master.picture WITH ' '
Thisform.Refresh()

which gives error "Data type mismatch.

Saify
Next
Reply
Map
View

Click here to load this message in the networking platform