Welcome! Log In Create A New Profile

Advanced

How to find last check box option checked?

Posted by Marijan Tomasic 
How to find last check box option checked?
March 29, 2023 08:04AM
Is there a way to identify which option was last clicked on a multi-option check box?
For example in the "Whenever modifying" event code.
Re: How to find last check box option checked?
March 29, 2023 07:47PM
Within a session or across sessions?
Re: How to find last check box option checked?
April 02, 2023 10:35PM
i mean windev...
Argus
Re: How to find last check box option checked?
April 06, 2023 10:54PM
There is no DIRECT way...

What I would do each time there is a modification :
- compare the current state of the field with the saved values (empty the first time)
- save the current list of checked (by example in the ..note of the field) for next time
- do what I need to do based on the result of the comparison
Re: How to find last check box option checked?
May 04, 2023 11:41AM
Code section: Initializing CBOX_multioption

R is int
R = CBOX_multioption // OR Value of field linked to CBOX_multioption


Code section: Whenever modifying CBOX_multioption

nClickedOption is int

FOR x = 1 _TO_ MySelf.Count()
	
	IF BinaryXOR( MySelf[x].Value, R[x] ) THEN
		nClickedOption = x
	END
END

Info("Clicked option is: " + nClickedOption)



Edited 1 time(s). Last edit at 05/04/2023 11:47AM by Marijan Tomasic.
renko allard
Re: How to find last check box option checked?
May 13, 2023 01:40AM
thecbox items you can giv them a value ( a name ) in the 7 tab window when one is clicked you get that name


seee description of th control tab => content . the 5th tab
Re: How to find last check box option checked?
May 16, 2023 01:22PM
"...when one is clicked you get that name... "

Thanks, but I don't understand...
Can you write me the code to find out which option is clicked?
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: