derez Expert Licensed User Longtime User Oct 21, 2007 #1 Erel I have found that when using Sender in "select" I have to write the case with lower case letters , otherwise it does not recognize the name, example: ... AddEvent ( "LbToKg", Click, "all_conversions") .... Select Sender Case "lbtokg" If Arc_color = 0 Then Disp = 0.4536 * Disp Else Disp = 2.2046 * Disp ... did I miss something or it is a bug ?
Erel I have found that when using Sender in "select" I have to write the case with lower case letters , otherwise it does not recognize the name, example: ... AddEvent ( "LbToKg", Click, "all_conversions") .... Select Sender Case "lbtokg" If Arc_color = 0 Then Disp = 0.4536 * Disp Else Disp = 2.2046 * Disp ... did I miss something or it is a bug ?
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2007 #2 Sender keyword (without a property or method) returns a string with the control's name. The name is internally saved with lower case letters. You can also use StrCompare with cCaseUnsensitive although your solution is good enough.
Sender keyword (without a property or method) returns a string with the control's name. The name is internally saved with lower case letters. You can also use StrCompare with cCaseUnsensitive although your solution is good enough.
derez Expert Licensed User Longtime User Oct 21, 2007 #3 Sender Thanks Erel please look at my other problem with the textbox