VB Quickie
I''m starting to play around with VB and i got a quick little question:
I have 3 text boxes, and a button on a dialog. When the button is pressed it calls a subroutine to add the numbers in the first 2 boxes and display the result in the third. I have this so far:
Private Sub CMDGO_Click()
TXTANSWER = TXTFIRST + TXTSECOND
End Sub
but that just concat''s the strings... i want to get the numeric values from the text... and i don''t know how... could sombody help... i don''t have a book yet, and i tried MSDN, but that usually never helps...
Thanks in advance for any help...
40
www.databyss.com
www.omlettesoft.com
"Don''t meddle in the affairs of wizards, for they are subtle and quick to anger."
-40
never mind... found it:
Private Sub CMDGO_Click()
TXTANSWER = CInt(TXTFIRST) + CInt(TXTSECOND)
End Sub
I finally found and asked my local guru
40
www.databyss.com
www.omlettesoft.com
"Don''t meddle in the affairs of wizards, for they are subtle and quick to anger."
Private Sub CMDGO_Click()
TXTANSWER = CInt(TXTFIRST) + CInt(TXTSECOND)
End Sub
I finally found and asked my local guru
40
www.databyss.com
www.omlettesoft.com
"Don''t meddle in the affairs of wizards, for they are subtle and quick to anger."
-40
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement