NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 08-18-2012, 12:30 PM   #1
RodS7
Member
 
Join Date: Mar 2012
Location: DFW, TX
Posts: 40
Thanks: 3
Thanked 7 times in 4 posts
Default Manipulatting Strings

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.
RodS7 is offline  
Reply With Quote
Old 08-18-2012, 12:46 PM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

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.
NinjaTrader_AdamP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AdamP for this post:
Old 08-18-2012, 01:00 PM   #3
RodS7
Member
 
Join Date: Mar 2012
Location: DFW, TX
Posts: 40
Thanks: 3
Thanked 7 times in 4 posts
Default

thank you Adam. I searched the msdn section on the web, but this did not come up

I appreciate your help
RodS7 is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 10:58 PM.