For Christ sake...it's a single liner people!:))))))))))))))) 

 pVal = 1234.90899
 splitList =
[value(string(pVal).char[1..(offset(".",string(pVal)))-1]),value(string(
pVal).char[(offset(".",string(pVal)))..string(pVal).char.count])]

 put splitList 

Covert the pVal to a string first and it gets even faster...just
joking..it's crap code but it's in a single line:)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Troy Rollins
Sent: 02 September 2004 19:47
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> Getting separate parts of a number



On Sep 2, 2004, at 2:39 PM, Colin Holgate wrote:

> anArray = string(float).split(".")
>
> That's pseudo ActionScript!

Does that not actually leave out some steps though?

I don't know of any Lingo "split" function. You'd need to instantiate 
an object, etc. to get access to that method, no?
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to