Hi Emerson,
That seems to be a bug in the PictureVal property.
I've already reported it to Microsoft.
Maybe you could enter in MSDN at
Look for "Available Connections" or "Conexões disponíveis", select "Visual Studio and .NET", "Visual Studio" again and then type "VFP" or "FoxPro" in the textbox and click on "Search"
And pls validate it.
There's place for you to add your own comments on this issue too !
Below I'm pasting some text from one of Colin Nicholls recent messages:
Feedback to the Visual FoxPro teamTo report issues or make suggestions to the Visual FoxPro team, use https://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx. For issues and suggestions specific to this CTP select "Visual FoxPro 9.0 SP2 and Sedna CTP" in the version drop down. Entries reported through this channel are directly logged in our tracking database. You will be able to vote for issues and suggestions already reported and track completion status of your entries.
The team values your feedback tremendously. More than half the issues fixed in the SP2 patch in this CTP have been reported by the community, either though Connect or via email to the team. On behalf of Microsoft and the Visual FoxPro team I wish to thank you for helping us improve the product.Regards
Cesar
>I'm storing a png image file in a blob field and copying the content of the field to my code inside a text...endtext expression to use with pictureval property of an image control.
>If I use a bmp or gif file it works correctly, but when I use a png file the image isn't showed.
>PictureVal property accepts png images?
>See the following code that doesn't work:
>
>
>Local lcPicture
>TEXT To m.lcpicture Textmerge Noshow
>89504E470D0A1A0A0000000D494844520000000800000007080600000035590C5E00000001
>7352474200AECE1CE90000000467414D410000B18F0BFC6105000000206348524D00007A26
>000080840000FA00000080E8000075300000EA6000003A98000017709CBA513C0000001874
>455874536F667477617265005061696E742E4E45542076322E3732725A845D000000C24944
>415418573D4ED90E82400C2CBA8F7EC6261A10E512170FA2A2BFEE831A9F1401398C372812
>BFA0B2263A4993B6D3990EECBC00B2470EAFE24D34BD8369F6647E1056C22821E3C914E199
>1770BEDC8828C968762D2CFBDA3D7D10B9A5A0D46C216C5D8FB4150DFB031B4B002F7E381A
>3B58BA30983833E4EA1FD9653DAC37C4FF0CCBD59A32AB8FAA66FC97BA617EED93C3B10AA7
>F35588E2035554FDFB661FC6AC24280FCC45E006FBDA7CB114FC28A6D6D0C68DE757833881
>EC555059D5F003C4EA7F1C2501E99F0000000049454E44AE426082
>ENDTEXT
>m.lcPicture = Strconv(m.lcPicture, 16)
>This.PictureVal = m.lcPicture
>