In VB6 textboxes were of the variant type. In VB.NET they are solely strings. ThereforeOriginally posted by richas
OK I have had some sucess with code like:
Fcco.Text = Val(Fosc.Text) * Val(M.Text) * Val(P.Text) * 2
This places the result in the Fcco textbox. Since Fcco IS a textbox, the user could plug values in there which is not what I want since it is only an output. Anyway to have the result show up as plain text?
Richard
VB Code:
Fcco.Text = Cstr(Val(Fosc.Text) * Val(M.Text) * Val(P.Text) * 2)
There are other ways to convert to strings but that is the easiest.




Reply With Quote