Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Sender returning control name


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-21-2007, 12:43 PM
Senior Member
 
Join Date: May 2007
Posts: 188
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Sender returning control name

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 ?
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #2 (permalink)  
Old 10-21-2007, 02:27 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

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.
Reply With Quote
  #3 (permalink)  
Old 10-21-2007, 07:44 PM
Senior Member
 
Join Date: May 2007
Posts: 188
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Sender

Thanks Erel

please look at my other problem with the textbox
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolve Sender ambiguity agraham Basic4ppc Wishlist 4 10-24-2008 01:55 PM
How to use "Sender" in click-events? Stellaferox Questions & Help Needed 4 02-20-2008 07:00 AM
Returning subroutine error - Input string was not in the correct format HarleyM Questions & Help Needed 4 10-20-2007 07:45 AM


All times are GMT. The time now is 02:28 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0