Sender returning control name

Discussion in 'Bug Reports' started by derez, Oct 21, 2007.

  1. derez

    derez Expert Licensed User

    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 ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  3. derez

    derez Expert Licensed User

    Sender

    Thanks Erel

    please look at my other problem with the textbox
     
Loading...