On Wed, Jun 10, 2009 at 1:55 PM, Vince Teachout<[email protected]> wrote:
> MB Software Solutions General Account wrote:
>
>> Use named parameters.  I just posted a similar answer yesterday to a
>> fellow Foxer.
>>
>> See http://leafe.com/archives/showMsg/421557
>
> Thanks!  That, in conjunction with Cast(), got it:
>
> cString = FiletoStr("Myfile.pdf")
> cString = Cast(cString as blob)
> vpParm =cString
>
> Sqlexec(nHandle, "Insert into mytest (thekey, myImage)
> Values('123',?vpParm)")
-----------------------------------------------

Forgot all about casting now available in VFP.

Glad you remembered it and put it to use getting the proper data type
the backend was expecting.



-- 
Stephen Russell
Sr. Production Systems Programmer
Web and Windows Development
Independent Contractor
Memphis TN

901.246-0159

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to