Dodgeram01 Posted June 28, 2002 Posted June 28, 2002 I have 5 text boxes, and 6 check boxes. When a check box is selected, the text from the text box next to it needs to be put into a string: Input1 = txtInput1.Text Input1 = "" & vbCrLf & "__ " & Input1 & "" These values (Input1 - Input5) are then printed in a list. Part of the code works correctly as I get to the new line and I get "__ ". I am however not understanding why the first part of the code doesn't seem to be working. Also, I have dimmed Inputs1 - Input5 as Strings. Should they be doubles or something similar? Thank You. Quote Dodge Grab Life By The Horns
Moderators Robby Posted June 28, 2002 Moderators Posted June 28, 2002 are the variables (Input1 ..5) going to be used in a calculation of a numeric nature? Quote Visit...Bassic Software
Dodgeram01 Posted June 28, 2002 Author Posted June 28, 2002 Text, I'm sorry. Right now I have the variables being assigned when the check boxes are clicked, but I just "discovered" that it'll work if you enter code into the textbox first, and then check the box. I'm thinking I might add this code to the print button, because at that point in time all the desired data should be entered. (The program displays a form, with numerous checkboxes and labels (which contain item names). When a checkbox is checked, the corresponding item is added to the list, and then the list is printed.) Quote Dodge Grab Life By The Horns
Dodgeram01 Posted June 28, 2002 Author Posted June 28, 2002 I removed the checkboxes for these text inputs. I also put the string assignment (I guess that's what you'd call it) into my Print button's click event. Problem solved. Thanks for your help(support, whatever ya wanna call it) Robby. Quote Dodge Grab Life By The Horns
Dodgeram01 Posted June 28, 2002 Author Posted June 28, 2002 I was wrong. Now that I put that stuff under the print button, the small line I need for the check prints out for every Input, whether there's text entered or not. Is there a different event, such as something relating the textbox that would be suitable for this? Quote Dodge Grab Life By The Horns
Moderators Robby Posted June 28, 2002 Moderators Posted June 28, 2002 'into my Print button's click event'... That's a good move. Quote Visit...Bassic Software
Dodgeram01 Posted June 28, 2002 Author Posted June 28, 2002 (edited) I'm thinking maybe a little "If..then" technology may be able to rectify my current "situation." **Update** The "situation" has been rectified. Edited June 28, 2002 by Dodgeram01 Quote Dodge Grab Life By The Horns
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.