Question about string handling.

Previous topic - Next topic

matchy

Quote from: Kitty Hello on 2010-Sep-30
I think the right$ thing might evaluate a tad faster, though.

How about the speed of MID$ command?

Kitty Hello

left$, right$, mid$ are basically the same command. The replace might be a tad slower when the string lengths of needle$ and haystack$ are not equal.

ampos

The problem with most of your function is/was that numbers converted to strings used to have a space in front (the hidden + (positive) sign) so you used to do:

A$=right$(str$(n),Len(str$(n))-1) just to remove this blank, on the c64 and others.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

MrTAToad

Well, the C64 didn't do automatic type conversion in BASIC :)