Sign in to follow this  
Followers 0
TheGOG

Checkbox Problem

2 posts in this topic

#1 ·  Posted (edited)

It doesn't return the correct flag.

here is the code

Func SETUP_And_Return_Check_Boxes()

Select

Case $J >= 1 And $J <= 19

IF $CHKBXSW = "PUT" Then

$CHKBX[$J] = GUICtrlCreateCheckbox (" ", 13, $RowDisplay[$J]-4, 10)

GUICtrlSetState($CHKBX[$J],$RKND[$J])

EndIf

If $CHKBXSW = "GET" Then $RKND[$J] = GUICtrlRead($CHKBX[$J])

GUISetState(@SW_SHOW)

Case Else

MsgBox(4096, "Error", "Too Many Checkboxes for this screen")

EndSelect

EndFunc

Edited by TheGOG

Share this post


Link to post
Share on other sites



It doesn't return the correct flag.

here is the code

Func SETUP_And_Return_Check_Boxes()

Select

Case $J >= 1 And $J <= 19

IF $CHKBXSW = "PUT" Then

$CHKBX[$J] = GUICtrlCreateCheckbox (" ", 13, $RowDisplay[$J]-4, 10)

GUICtrlSetState($CHKBX[$J],$RKND[$J])

EndIf

If $CHKBXSW = "GET" Then $RKND[$J] = GUICtrlRead($CHKBX[$J])

GUISetState(@SW_SHOW)

Case Else

MsgBox(4096, "Error", "Too Many Checkboxes for this screen")

EndSelect

EndFunc

I believe this is what you need to change:

If $CHKBXSW = "GET" Then $RKND[$J] = GUICtrlRead($CHKBX[$J])
oÝ÷ ÚÚºÚ"µÍBBRY ÌÍÐÒÐÕÈH ][ÝÑÑU   ][ÝÈ[BBBRY]S
ÕRPÝXY
    ÌÍÐÒÐÉÌÍÒJK    ÌÍÑÕRWÐÒPÒÑQ
HH  ÌÍÑÕRWÐÒPÒÑQ[BBBBIÌÍÔÓÉÌÍÒHH    ÌÍÑÕRWÐÒPÒÑQBBBQ[ÙBBBBBIÌÍÔÓÉÌÍÒHH ÌÍÑÕRWÕSÒPÒÑQBBBQ[YBBQ[Y

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0