n. def. (N/A) in double
Author: dansmo
Creation Date: 11/10/2010 9:51 AM
profile picture

dansmo

#1
Hi,

sometime an indicator value will have n.def. as a value.
Now, I´d like to cycle through the indicator values and repair it, so that n.def. --> 0.

CODE:
Please log in to see this code.


However, it does not work. I must be doing something wrong here.
profile picture

Eugene

#2
Indicator, or DataSeries, value shouldn't contain "n.def.", "n. def." or other string constants - it's a double. Can you clarify, what is this "n. def./n.def" thing about?
profile picture

dansmo

#3
It is a part of my RMI based on Flexible Renkos:

CODE:
Please log in to see this code.


This will give this debug print:
QUOTE:
item: 0value: 0
item: 1value: 0
item: 2value: 0
item: 3value: 0
item: 4value: 0
item: 5value: 0
item: 6value: 100
item: 7value: 100
item: 8value: n. def.
item: 9value: 0
item: 10value: 0
item: 11value: 0
item: 12value: n. def.
item: 13value: 100
item: 14value: 100
item: 15value: 100
item: 16value: 100
item: 17value: n. def.
item: 18value: n. def.
item: 19value: 100

profile picture

Eugene

#4
This does not help understand what is this "n. def" thing. In German .NET, is this what is commonly known as "N/A"? In this case, you should check for
CODE:
Please log in to see this code.
profile picture

dansmo

#5
Exactly. Now it is working! Thank you Eugene.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).