Why don't the string or number comparisons work?
Publicado: Lun Jul 24, 2017 6:06 pm
Hi,
In the code below, the problem is that the string and number conversions don't work. Below, we assign 5 to n_Number; and "test" to s_String. But when we run it, the condition is never executed.
I tried setting the 's_BreakPointString := s_BreakPointString' lines as breakpoints, and it never gets there. I also tried stepping through, and the condition is ignored; it just skips to the next line, after the endif.
In the code below, the problem is that the string and number conversions don't work. Below, we assign 5 to n_Number; and "test" to s_String. But when we run it, the condition is never executed.
I tried setting the 's_BreakPointString := s_BreakPointString' lines as breakpoints, and it never gets there. I also tried stepping through, and the condition is ignored; it just skips to the next line, after the endif.
Código: Seleccionar todo
METHOD TestThis( oSender ) CLASS frm_Test
Local n_Number := 5
Local s_String := "test"
Local s_BreakPointString := "Breakpoint"
If n_Number == 5
s_BreakPointString := s_BreakPointString
Endif
If s_String == "test"
s_BreakPointString := s_BreakPointString
Endif
s_BreakPointString := s_BreakPointString
RETURN Nil