Changes

Strange Errors & Behavior in VB6

921 bytes added, 03:33, 13 February 2008
/* Check Boxes Sometimes vbChecked/vbUnchecked (1/0) and Sometimes True/False */
The following lines were added (+) and removed (-):
<big>'''Runs in IDE (''Interpreted''), Yet (''Compiled'') .exe Crashes '''</big>== Check Boxes Sometimes vbChecked/vbUnchecked (1/0) and Sometimes True/False ==Ever experience inconsistant CheckBox values?  Your checkbox is checked yet code treats it as unchecked.  Another stupid Microsoft glitch, or more likely, an oversight by their 3rd rate engineers.Illustrated best with this sample program:[[Image:vbchecked01.png]][[Image:vbchecked02.png]] Option Explicit Private Sub cForms2_Click()  tStandard.Text = cStandard.Value  tForms2.Text = cForms2.Value End Sub Private Sub cStandard_Click()  tStandard.Text = cStandard.Value  tForms2.Text = cForms2.Value End Sub Private Sub Form_Load()  tStandard.Text = cStandard.Value  tForms2.Text = cForms2.Value End SubThe Fix: Stick with the standard checkbox only or Forms 2.0 checkbox only throughout the software you are developing. 
Bureaucrat, administrator
16,192
edits