passing characters to methods ?
Don Pomplun
Posts: 116
Parameters passed to methods are all longs. I asume if I call a method and supply a parameter as "A", it will be seen at the other end as $00000041.
If I supply the parameter as "AB" will it come in as $00004142 ?
(Obviously if this works, my parameter strings are limited to 4 characters)
If this is taboo, is there a way ? Is it passing pointers to the strings?
TIA,
-- Don
If I supply the parameter as "AB" will it come in as $00004142 ?
(Obviously if this works, my parameter strings are limited to 4 characters)
If this is taboo, is there a way ? Is it passing pointers to the strings?
TIA,
-- Don
Comments
A routine may accept a pointer
···
The calling function sends the address of the string
Hard to come up with simple examples, hope this was clear enough.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters
Southern Illinois University Carbondale, Electronic Systems Technologies
My House Control system is now off the PC and on the Prop (though I haven't seen any radical drop in the electric bill yet).
Thanks.
-- Don