Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LOADPICTURE fo blob pictures
Message
From
22/10/2004 11:09:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
LOADPICTURE fo blob pictures
Miscellaneous
Thread ID:
00953744
Message ID:
00953744
Views:
60
On VFP9b2 help i see that PictureVal support IPicure interface for loaded in memory images.

Well.

But if i load a lot of pictures into a blob table
( for example for fill a Treeview/Popup/...)
as I make to load them in memory ?ù

I hope not to have to make this demential thing:
STRTOFILE(aliasName.blobPicture,SYS(2023)+'\tempname')
oPicure=LOADPICTURE(SYS(2023)+'\tempname')
ERASE SYS(2023)+'\tempname'
I expected this SIMPLE COMMAND:
oPicure=LOADPICTUREVAL(aliasName.blobPicture)
or
oPicure=LOADPICTURE(aliasName.blobPicture,1)
Of course, if this behaviour it is implemented
into VFP9 RTM, i expected that it is
implemented on memory, not with a temporary file like
a shortcut for the 3 previous commands.
( see EXECSCRIPT() solution,
it is equal ( except for file exclusive use) to
* EXECSCRIPT(m.string)
STRTOFILE(m.string,SYS(2023)+'\'+SYS(2015)+'.PRG')
COMPILE SYS(2023)+'\'+SYS(2015)+'.PRG'
DO SYS(2023)+'\'+SYS(2015)+'.PRG'
ERASE SYS(2023)+'\'+SYS(2015)+'.*'
)

Thanks
Fabio
Next
Reply
Map
View

Click here to load this message in the networking platform