On 12/12/2010 11:38 PM, MB Software Solutions, LLC wrote:
> VFP9SP2 / MySQL backend
>
> I ran a query against a MySQL database, LongBlob field.  I get back a
> General field in my cursor.  That's an .EXE that I want to create the
> file locally and then run it.  However, when I do
> STRTOFILE(MyCursor.AppToRun,addbs(sys(2023))+"_setup.exe"), it throws an
> error:  "Function argument value, type, or count is invalid."
>
> What am I doing wrong?
>


Solved it.  Just needed CAST.  I just had to add CAST(MyCursor.AppToRun 
as Blob) and it now works fine.

I'm making a new loader utility to replace my old ones and that will run 
from a web database repository instead of the traditional VFP way.

-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
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