Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Inserting code or quote in message
Collapse
X
-
How do you do what?
You mean for a forum message?
When replying to a specific message, use the "Quote" button in the lower right of that specific message. You should do this to get your reply started -- this reveals an editing window on the same web page with the quoted message inside special 'markup' delimiters -- type your reply below this.
Once you have your reply window started ...
study the buttons in the toolbar just above your editing window. That is, hover over each button for it's tooltip message.
You'll want to use the button with a giant '#' for marking code blocks.
-
Serialize
Can someone tell me what I am missing here? Default “soundFileName” shows up in the user dialog window. If I type in another Wav file from the proper sound folder file it shows up in the parameter section and sticks with reboot but does not work. The soundFileName previously chosen still sounds.Code:[XmlIgnore()] [GridCategory("Parameters")] public string SoundFileName { get { return soundFileName; } set { soundFileName = value; } } [Browsable(false)] public string SoundFileNameSerialize { get { return soundFileName.ToString(); } set { soundFileName = (value); } }
I have not been able to find a syntax example for this
Comment
-
It is a string. So why are you doing this in the first place? Just serialize the string without any decorations.Originally posted by Pete77 View PostCan someone tell me what I am missing here? Default “soundFileName” shows up in the user dialog window. If I type in another Wav file from the proper sound folder file it shows up in the parameter section and sticks with reboot but does not work. The soundFileName previously chosen still sounds.Code:[XmlIgnore()] [GridCategory("Parameters")] public string SoundFileName { get { return soundFileName; } set { soundFileName = value; } } [Browsable(false)] public string SoundFileNameSerialize { get { return soundFileName.ToString(); } set { soundFileName = (value); } }
I have not been able to find a syntax example for this
How the string gets passed to your code can only be assessed if we can see how you are passing the string to the code. The serialization is a separate issue.
Comment
-
Thanks Alan, I am still getting previously set default wav file, not the one I have changed to in the user dialog box
private string soundFileName = "Aert3.WAV";
[GridCategory("Parameters")]
public string SoundFileName
{
get { return soundFileName; }
set { soundFileName = value; }
}
[Browsable(false)]
public string SoundFileNameSerialize
{
get { return soundFileName.ToString(); }
set { soundFileName = (value); }
}Last edited by Pete77; 08-13-2018, 11:36 AM.
Comment
-
Hello,
Without the full code we're unable to test on our end.
If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.
I look forward to your reply.Alan P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment