![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Mar 2012
Location: DFW, TX
Posts: 40
Thanks: 3
Thanked 7 times in 4 posts
|
I can't find a way to manipulate strings.
At this time, I need a way to extract the left most character of a string. For example, if a string's value is "Minute", I want to be able to extract the "M" and if a string's value is "Range", I want to be able to extract the "R" Anyone have any suggestions? I also want to be able to determine the length of a string etc. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
Rod,
I would suggesting using the following reference here : http://msdn.microsoft.com/en-us/libr...em.string.aspx NinjaScript is C#, and a data type like String as well as methods for these data types are already defined in that language.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_AdamP for this post: |
|
|
|
#3 |
|
Member
Join Date: Mar 2012
Location: DFW, TX
Posts: 40
Thanks: 3
Thanked 7 times in 4 posts
|
thank you Adam. I searched the msdn section on the web, but this did not come up
I appreciate your help |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sending strings from indicator... | jonmoron | Indicator Development | 7 | 04-08-2013 02:56 AM |
| European date format and strings | eDanny | General Programming | 6 | 03-15-2011 12:04 PM |
| C# escape literals should do not work in parameter description strings | ETFVoyageur | Indicator Development | 1 | 01-04-2011 05:09 AM |
| Pull-Down List with Strings | SharkCub | Indicator Development | 1 | 07-31-2010 10:06 AM |
| OrderID and custom strings | furedde | Miscellaneous Support | 3 | 11-06-2006 08:27 AM |