Re: USRx() and adding more parameters?

Andrew Ayers via Coco <coco-uNHYcr1XS/wmlAP/[email protected]>
Newsgroups gmane.comp.hardware.tandy.coco
Message-ID <[email protected]>
If you only have one particular type, I think you might be able to pass 
an array? Just reference the array variable (I think) and beyond that I 
don't know where you go with it (that is, how you get the array contents 
on the ML side).

Another possibility might be to create a string variable, then use 
VARPTR to get it's address...then break it up into "fields" and pass 
everything as part of that string - ie, say you set a string to be 9 
characters long, but you wanted to pass a name and a number, you could 
do something like A$="Andrew123" - of course, you'd have to split it 
apart then parse each portion, and fields would be "fixed length".

Or maybe you could reserve the space in a similar manner, then use the 
VARPTR address and knowing the size, POKE the values you need? It'd be 
something like string-packing for POKEing in an ML program in BASIC, but 
instead you'd use it as a means to pass parameters to your ML program...

These are all ideas/guesses - I've never tried any of 'em...

Andrew L. Ayers
Glendale, Arizona
phoenixgarage.org
github.com/andrew-ayers


-- 
Coco mailing list
Coco-uNHYcr1XS/wmlAP/[email protected]
https://pairlist5.pair.net/mailman/listinfo/coco
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.