Sender As Object
Returns the object that raised the event.
Only valid while inside the event sub.
Example:
Sub Button_Click
Dim b As Button
b = Sender
b.Text = "I've been clicked"
End Sub
B4J Question Sender not set in WebView_LocationChanged event - Sandman    
Jul 5, 2022 the click happened in, as Sender is Null. Is this expected behaviour on B4J or have I misunderstood...: " & Location)
Sleep(0)
Log(Sender)
Sender.As(WebView).LoadHtml("<h1>Beep...
link: a local variable containing the Sender (as a WebView) before the Sleep.
Public Sub...
link: Oh wow, I don't think I knew that! I'll report back when I've tested. 👍...
link: sleep() kills the sender. if i add sleep() to my example, sender becomes null. sender is only...
Share My Creation Lyn Bulk SMS Sender Source Code - mcqueccu    
Apr 22, 2022   
(12 reactions)Hello, I want to introduce to you a Lyn Bulk SMS Sender.
Source code Only = $30
Software... Groups
4. Add Sender IDS
5. Add Single Contacts
6. Import contact list from CSV or Excel
7. Group...
link:
+1 (IOS or Android, ideally using their own sms :) )
Check this out from @Abdulizor
https://www.b...
link:
Please let me know if you are interested in B4A/B4i (Android and iOS) Version as well. Thank you
+...
link: question: Will I be able to create Sender ID with any SMS provider right?
Yes, SMS Providers allow for...
Wish Protect Sender from Sleep-walking killer - Sandman    
Jul 6, 2022   
(1 reaction)In events we have Sender to inform us of the origin of the event. A magical companion that never....b4x.com/android/forum/threads/sender-not-set-in-webview_locationchanged-event.141584/
My wish...
link:
If you really want to discuss this, move it into Chit Chat so we don't get this wish thread off...
link:
Why not use the tag prop as an identifier ?
If you really want to discuss this, move it into Chit ...
link: Why not use the tag prop as an identifier ?...
B4A Tutorial [B4X] Net library (FTP, SMTP, POP) with Wait For - Erel    
Feb 14, 2021   
(15 reactions)   
tags: FTP, SMTP, POP.Net, B4X Net ftp smtp pop waitStarting from v1.70 of Net, jNet and iNet libraries the asynchronous methods return a 'sender filter' object.
This object can be passed as the sender filter parameter in a Wait For call.
This makes it simpler to manage multiple requests.
For example:
'ftp was previously initialized and its event name was set to ftp:
'ftp.Initialize("ftp", "your.server", 21... the sender filter parameter, each event will be intercepted in the correct wait for call.
The same...
B4A Question [SOLVED] Sender Tag value irrespective of object type? - RandomCoder    
Feb 23, 2014Here is the scenario, I have a scrollview loaded with panels and each panel contains an imageview and a couple of labels. The user is able to trigger an event by pressing on the panel, the imageview or either of the labels and I handle this by using three different subs. Each sub casts Sender to the correct object type so that the tag value can be read.
Is it possible to have just one sub and... the answer.
I've tried....
Dim item As Object=Sender
Log(item.Tag)
But this gives an error of unknown...
B4A Question ViewsEx or XUI Views and Sender(solved) - Pedro Hu    
Jun 23, 2020 As FloatLabeledEditText
b = Sender
End Sub ...
link:
it worked by removing the B4XView to B4XFloatTextField
You are correct. My mistake.
You should ne...
link: container>
Dim x As B4XView = Sender
Dim TextField As B4XFloatTextField = x.Tag
it worked...
link:
Upload your project (File - Export as zip).
here I attach...
Italian Comportamento incomprensibile (Timer / Sender) - zamb    
Jun 19, 2020 sender così come non sia possibile creare le labels nel designer per poi farvi riferimento generando... 'attivo timer stimolo
End Sub
Sub Label_Click
Dim Send As Label
Send = Sender...
link: Dopo aver applicato la correzione di @LucaMs ti conviene poi fare copia e incolla di una ImageView c...
link: Come sempre hai ragione ed io sono proprio cretino! Era tanto ovvio... :mad: :mad:
Grazie infinite!...
link: Nel Designer, a tutte le ImageView devi dare il medesimo nome evento.
Mentre le prime hanno "I...
Spanish Como es lo inverso del Sender? - roerGarcia    
May 10, 2020Hola a todos.
Cuando tienes dos vistas o views (panel, label, textfield) y lo "clonas" puedes detectar cual fue el elemento activado, al que se le dio clic, por ejemplo, igualando otra variable = Sender.
Pero... cuando tienes digamos, seis paneles, con el mismo layout, con varios elementos dentro, como manipulas digamos... el numero cuatro de los seis? (estos paneles se habrian agregado mediante codigo, posicionado segun conviene en la forma)
La unica manera es recorrer las vistas...
B4A Question [SOLVED]Sender for B4XView switch view - giggetto71    
Mar 1, 2020Hi guys,
I have got a Custom List view made with cards. Each card has several views insiede. By using the following code in the click event of the views I can get the index of the card where the view get clicked (below for example the code executed when I click on a conventional image view inside the card.
Sub imgAlertCardStatus_Click
Dim index As Int = CLV1.GetItemFromView(Sender)
Now....GetItemFromView(Sender)
Below, the log I get:
Error occurred on line: 1783 (Main)
java.lang...
B4A Question Handle the Sender in another Sub possible, but only, if the Sender- Event Sub has an empty codeline? - agraham (first post)    
May 1, 2022
So the "Tag" property I need to identify the ListIndex when pressed, and can not use it
...
link: It's not quite the answer of the question, but now I found this Thread. So with clv.GetItemFromV...
link: I have a list with 4 SwiftButtons (4 options) in many Listitems. So the "Tag" property I n...
link: Why not setting SwiftButton as eventprefix and just USE one eventsub?
Your code makes zero sense to ...
Page: 1  
2  
3  
4