[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] I found the answer. Re: string to number function in JScript or AB.



PureBytes Links

Trading Reference Links

For anyone need this in the future.  I have found 
Jscript's "parseInt" would do what I need which convert string 
representation of integer to integer.

--- In amibroker@xxxxxxxxxxxxxxx, "mmqp" <mmqp@xxxx> wrote:
> Hi,
> 
> Has anyone known/written a function in AB or Jscript which will 
take 
> in numerical string and convert it to actual number.  I have a 
> Jscript which reads in AB date formats (eg. 1011023) from a file; 
> however this is read in as a string object.  When I passed it to AB 
> and compare it to DateNum() array.  Type is mismatched.   Again, a 
> Jscript method/function would be appreciated.  TIA


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/i5gGAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/