| |

VerySource

 Forgot password?
 Register
Search
View: 2151|Reply: 10

Questions about radiobutton

[Copy link]

1

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-29 21:00:01
| Show all posts |Read mode
I need to take the value of the data window (aa field, radiobutton, three items) aa after the mouse click, but now whether it is itemchanged or editchaned, or clicked event, the value before the mouse click is displayed. Can the operation get the value after the click after the mouse click event is completed?
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-3-4 09:30:01
| Show all posts
dw_1.accepttext ()
dw_1.getitem ...
Reply

Use magic Report

1

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-4 14:45:01
| Show all posts
Upstairs, can I get more details?
I want to get the specific value of that field in dw_1
Reply

Use magic Report

1

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-4 17:15:01
| Show all posts
I want to use it like this! How can I change it?
ls_number = dw_edit.getrow ()
s_ifusdymd = dwo.name
s_ifusdymd = upper (s_ifusdymd)
if s_ifusdymd = 'IFUSDYMD' then

if dw_edit.object.ifusdymd [ls_number] <> '0' then

cb_1.visible = true
cb_4.visible = true
cb_5.visible = true
else
cb_1.visible = false
cb_4.visible = false
cb_5.visible = false
end if
end if
Reply

Use magic Report

1

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-4 21:30:01
| Show all posts
ifusdymd field is radiobutton
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-3-4 23:30:01
| Show all posts
In the editchanged and itemchanged events, data is the newly entered value.
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-3-5 09:30:01
| Show all posts
If you take a value in the button, call dw_1.AcceptText () before this dw_edit.object.ifusdymd [ls_number] <> '0', that is:

dw_1.AcceptText ()
if dw_edit.object.ifusdymd [ls_number] <> '0' then
...
Reply

Use magic Report

1

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-5 18:45:01
| Show all posts
I wrote it like this! Still the previous value
String s_ifusdymd
long ls_number
ls_number = dw_edit.getrow ()
s_ifusdymd = dwo.name
s_ifusdymd = upper (s_ifusdymd)
if s_ifusdymd = 'IFUSDYMD' then
   this.accepttext ()
if dw_edit.object.ifusdymd [ls_number] <> '0' then

cb_1.visible = true
cb_4.visible = true
cb_5.visible = true
else
cb_1.visible = false
cb_4.visible = false
cb_5.visible = false
end if
end if
Reply

Use magic Report

1

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-5 19:45:01
| Show all posts
I placed the itemchanged event
Reply

Use magic Report

1

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Argentina

 Author| Post time: 2020-3-5 23:45:01
| Show all posts
I print dw_edit.object.ifusdymd [ls_number] after this.accepttext ()
Value is still the previous value
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list