开发者

Convert String To Integer And Vice-Versa

开发者_Python百科I'm building a calculator application, and I have a Form, with a TextBox called txtVisor, that has the property NumbersOnly = true. I want to get the content of it(that I already know: txtVisor.Text) and convert it into a Integer, to do multiply it by 12, then convert the result into a String to set the txtVisor.Text as the result of the operation. How could I do this?

PS: I'm using NSBasic 7.0


txtVisor.Text = cstr( cint(txtVisor.Text)*12 )

The current version is NS Basic/CE 8, which will make your life much easier when it comes time to deploy your app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜