Re: Thanks guys, I love this site. Message #6 Posted by Vieira, Luiz C. (Brazil) on 3 Jan 2005, 8:12 a.m., in response to message #5 by Rick
HI, Rick;
if you want to put both in the same "package", maybe using local variables is easier. You can try this: (VPN, I'm using part of your 'engine', O.K.?) « DUP SIZE OVER -> S T
« T 2 S 1 - SUB OBJ->
T 1 1 SUB T S S SUB +
»
»
L1 L3 L2 L1
"Z123.456W" -> "Z123.456W" 123.456 "ZW" The program holds a copy of the original string and returns both the number and the two ASCII characters bordering it. If you don't need a copy of the original argument, you can try this one:« DUP SIZE -> T S
« T 2 S 1 - SUB OBJ->
T 1 1 SUB T S S SUB +
»
»
L1 L2 L1
"Z123.456W" -> 123.456 "ZW"
Hope this is closer to what you actualy want.
Cheers.
Luiz (Brazil)
Edited: 3 Jan 2005, 10:26 a.m.
|