Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

input numeric value in userform text box

$
0
0

good mornig

in userform macro
there is a textbox box
when I insert positive number working
error with negative value

these are the lines of code

' corquo  is defined  public as double

'-----------------------------------------------------------

Private Sub TextBox_corquo_Change ()   '
corquo = TextBox_corquo.Value               ' work with positive number only

end Sub

'------------------------------------------------------------------------

in another macro to solve the problem I have done this

Private Sub label_fs_Change()
Dim scala As String
fs = Val(label_fs.Text)
End Sub

What do I do accept negative values?

grazie


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>