| |||||||
| |||||||
Is there any kind of split string function in EasyLanguage?
This is a discussion on Is there any kind of split string function in EasyLanguage? within the TradeStation forums, part of the Trading Software category; I'm dealing with a string that is comma or pipe ("|") delimited from an external DLL. I get this string ...
![]() | ||||
|
| | LinkBack | Thread Tools |
| | #1 |
| Rookie Join Date: Sep 2008 Posts: 14
| Is there any kind of split string function in EasyLanguage?
I'm dealing with a string that is comma or pipe ("|") delimited from an external DLL. I get this string back in Tradestation/EasyLanguage and I need to split it into an array of values. Is there any built in function for this in EasyLanguage? Would it even be possible with whatever existing string functions are in the library? Thanks for any feedback on this. |
| |
| | #2 | |
| Legendary Member | Quote:
MidStr(Str, Pos, Count) LeftStr(Str, Count) RightStr(Str, Count) It's also useful to use this in cojunction with global variables. For example this sets a GV with the name "My Order Number" to the value given. Both the name of the GV and the value can be the result of a calculation, so you can GV names specific for a symbol or a timeframe. IntVRtn = GVSetNamedInt( “My Order Number”, 12345 ) ; ErrorTest = GVSetNamedString( “String 1”, “Some text…” ) ; You can retrieve and use these values using MyInt = GVGetNamedInt( “An Int Var’s Name”, -999 ) ; Twine = GVGetNamedString( “Rope”, “Error Message” ) ; Note there are many more GV functions, but these are probably the 2 most useful ones to set and retrieve numeric or text values that can be used anywhere in your code and across different indicators and charts. Charlton Last edited by Charlton; Mar 15, 2009 at 4:31am. | |
| |
![]() |
« Can anyone post an example of a C/C++ DLL that can be called from EasyLanguage?
|
Tradestation signals into EXCEL »
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The unemployed black man in a string vest fund. | pedro01 | General Trading Chat | 1 | Oct 5, 2008 6:48pm |
| What kind of trader are you? | Rhody Trader | Trading Polls | 13 | Apr 9, 2008 10:47am |
| Test - string literal | 0007 | Sandpit | 0 | Jan 29, 2008 8:12pm |
| Looking for a kind soul ... | insight2 | European Indices | 0 | May 14, 2007 8:59am |
| What kind of PC do you use to trade? | rossored | Trading Polls | 5 | May 14, 2005 6:30pm |
| New To Site? | Need Help? |
| Special Offers for T2W Members* | ||||
|---|---|---|---|---|
| 30 Free Trades in 30 Days | Free Special Report | Low Rates from $1.50/contract | | |
| * Offers open to new clients only. ** Just enter promotional code T2W100 when opening an account. T&Cs Apply. | ||||
All times are GMT -4. The time now is 12:58am.
Copyright © 2001-2009 Trade2Win Ltd







