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

[amibroker] Re: Are there any scripts to convert a comma seperated string into an Array in AFL?



PureBytes Links

Trading Reference Links

Well that doesn't return an array, but rather one of n strings. Seems rather inneficient when called iteratively since it will have to perform an O(n) search for every call, with each successive call that is deeper into the string costing more. Unless I'm missing an obvious optimization that it may be implemented with. A single array creating function should be more efficient. 

--- In amibroker@xxxxxxxxxxxxxxx, "Paul Ho" <paul.tsho@xxx> wrote:
>
> StrExtract().
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Conrad Joach" <consolejoker@> wrote:
> >
> > Looking for something akin to a Split() function that is common in most languages today.
> > 
> > So for a string:
> > 
> > "a,b,c,d"
> > 
> > It would return an array of length 4, with the string "a", "b", "c", "d".
> > 
> > I don't see anything like this in AFL, has anyone written one with the built in string functions that do exist?
> >
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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