Tasmania Posted October 4, 2007 Share Posted October 4, 2007 (edited) Ok, so after a couple hours of playing around and just skipping this bug, I'm finally down to it... I have to fix it. As I'm sure a lot of you have seen many (or all) of my posts, this is yet another one that follows along the same application that I've been creating for this whole time. When you select the menu item New, it executs the function new() which is coded as follows:expandcollapse popupFunc new() GUICtrlSetData($txtAttn, "") GUICtrlSetData($txtEmail, "") GUICtrlSetData($txtPwo, "") GUICtrlSetData($txtSca, "") GUICtrlSetData($txtDesc, "") GUICtrlSetData($dteRstdate, "") GUICtrlSetData($txtPE, "") GUICtrlSetData($txtPM, "") GUICtrlSetData($txtCharge, "") GUICtrlSetState($mnuConcept, $GUI_CHECKED) GUICtrlSetState($mnuReconcept, $GUI_UNCHECKED) GUICtrlSetState($mnuSample, $GUI_UNCHECKED) GUICtrlSetState($mnuResample, $GUI_UNCHECKED) GUICtrlSetState($mnuAddsam, $GUI_UNCHECKED) GUICtrlSetState($mnuHST, $GUI_UNCHECKED) GUICtrlSetState($mnuBFT, $GUI_UNCHECKED) GUICtrlSetState($mnuAddMG, $GUI_DISABLE) GUICtrlSetState($mnuBicNotes, $GUI_UNCHECKED) GUICtrlSetState($chkDup, $GUI_UNCHECKED) $displayed = 0 $readonly = 0 $qty = 1 $ponum = "N/C" $poamt = 0 $podisc = 100 $exnotes = "N/A" $material = "N/A" $gauge = "0.0" $pcode = "SAM-CONCPT" $pcodedefset = 0 $type = "CONCEPT" $firstbft = 1 $firsthst = 1 $bicnoteschecked = 1 $bicnotes = 0 $inumstart = "" $dupof = 0 $comto = 1 $lblComDupDisplay = "Common &To:" $comdup = "N/A" $cid = "N/A" $consisting = "N/A" $chkDup = "" $inum = "" $date = "" ControlFocus("Syte Line Automation", "", $txtAttn) EndFuncNow, according to this, no matter what is in the fields of txtAttn, it should SET the data to be null, which works great upon first execution... assuming that no other windows have been opened. If you execute this script as it is without clicking continue and filling in the fields, then it empties out every field and works exactly as it has been programmed to do, however if you click continue and then go back via the Back button, and then attempt to create a New item, it does not clear the first three fields and the last three fields, however every other field is set appropriately including the menu items and the child forms under those.I'm not sure what is going on here, so I'm going to post all of my code files, and you can reconstruct it if you would like. I am going to also post an SLA document so you can just use "open" to play around with it.The SLA file is located at: http://www.weboptions.us/10042007084459.slaYou can use Notepad to view the SLA document, if you so desire. Edited October 4, 2007 by Tasmania Link to comment Share on other sites More sharing options...
Valuater Posted October 4, 2007 Share Posted October 4, 2007 (edited) you are trying to use these two control ID's ( and others) that are the same in one GUI you have $txtAttn = GUICtrlCreateInput("", 88, 8, 121, 21, BitOR($ES_UPPERCASE,$ES_AUTOHSCROLL)) And in another GUI $txtAttn = GUICtrlCreateInput($attn, 88, 32, 121, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) Then when you try to "show" the first GUI you have removed the value of that control from that GUI ... in other words, they must be named dirfferently 8) Edited October 4, 2007 by Valuater Link to comment Share on other sites More sharing options...
Tasmania Posted October 4, 2007 Author Share Posted October 4, 2007 (edited) Oy! Thanks Edited October 4, 2007 by Tasmania Link to comment Share on other sites More sharing options...
Valuater Posted October 4, 2007 Share Posted October 4, 2007 Oy! Thanks Welcome!8) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now