Binary data from external
dsc at swcp.com
Mon Feb 20 12:49:26 CST 2012
If speed is not an issue, you can do this:
set the unicodeText of fld x to unhex( someHexExternalFunction() )
I'm hoping that the iOS style interface will move to the other platforms as an option. (For all I know, it has done so when I wasn't looking.)
I often create stack-library and external pairs and do most of the sugar coating in the library, so if you use that style, you can still create your function as a wrapper around another method.
On Feb 20, 2012, at 10:24 AM, Mark Schonewille wrote:
> Thanks, Dar. I think we are going to include a lot of NULLs in our data. That probably means we shouldn't use a function.
> Best regards,
> Mark Schonewille
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
> On 20 feb 2012, at 18:19, Dar Scott wrote:
>> My external C code boilerplate includes a function to create a hex returnable value. I sometimes do that. If you learn of a better way, I would like to learn of that.
>> It is easer with iOS externals.
>> You might be able to do this by analysis. If you know your characters will never include a zero byte, then you can just to an ordinary return of data.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode