old data!

The app I created has input windows to set numeric values. When I execute the calc button the old values are calculated (usually zero). When I execute the button again the correct values are calculated and are displayed. Any clue how I get the new values to execute the first time the button is pressed? Thanks in advance GWIX

Comments

  • : The app I created has input windows to set numeric values. When I execute the calc button the old values are calculated (usually zero). When I execute the button again the correct values are calculated and are displayed. Any clue how I get the new values to execute the first time the button is pressed? Thanks in advance GWIX

    =====================================================================

    [code]
    Dim value1,value2 As Integer
    'CINT ConvertstoINTeger.
    value1=CINT(TextBox1.Text)
    value2=CINT(TextBox2.Text)
    'Do a multiplication or whatever sum, put result in TextBox3.
    Textbox3.Text=CSTR(value1*value2)
    [/code]

    Regards,

    Dr M.



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion