Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Wizard Problem with String Parameter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Wizard Problem with String Parameter

    The Wizard generated code for a String Parameter tries to check it for a math Minimum Value... which fails with a type mismatch of course.


    Code:
            [Description("Wave file to use if Sound=2")]
            [Category("Parameters")]
            public string Soundfile
            {
                get { return soundfile; }
                set { soundfile = Math.Max(0, value); }
            }
    Didn't check to see if it's a problem with 6.0.

    #2
    I'm unable to reproduce on latest 6/6.5 since there is explicit code in place which only generates the Math.Max logic for "double" and "int".
    DierkNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ntbone, Today, 02:30 PM
    0 responses
    5 views
    0 likes
    Last Post ntbone
    by ntbone
     
    Started by tuliomgui, Yesterday, 10:07 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Learner Trader, Today, 08:36 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by GeorgeW, Today, 03:15 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by timko, Today, 11:55 AM
    4 responses
    12 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X