Here I've created the equivalent of LEN and MID$ for numbers, which I think you'll find very very useful, and I wish I'd had these functions to hand a long time ago.
SMLenN - gets the length of a number.
SMMidN - gets the Nth number of the number.
SMDP - gets the decimal point position of the number.
As always, copy the .lib to your libs folder, and the .inc to your includes folder.
Let me know if this is useful please...
Thanks,
Andy.
:)
I've added in some more number functions for you, and extended the SMMidN function to work like MID$,
that is, a start position, and the length required.
SMMidN - (number, start position, for X length of the number)
SMValBeforeDP - gets the value of a number before the decimal point
SMValAfterDP - gets the value of a number after the decimal point
I've included the new help file for this latest StringMap version (10.02).
Attached is the zip file.
As always, copy the .lib to your libs folder, and the .inc to your includes folder.
You can then compile Numbers.iwb
Thanks,
Andy.
:)
Thanks for sharing Andy!
Quoteand I wish I'd had these functions to hand a long time ago
So do I, but if I ever get around to make the remote control software for my Yaesu FT-717ND portable low-power radio transceiver I've been thinking of so long, these routines appears to be tailormade for that purpose.
Regards,
Egil.