20813.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 31 行
HTML
31 行
<html> <head> <title>Re: 请问有无办法从TextBox输入运算式?</title> </head> <body bgcolor="#FFFFFF" vlink="#808080"> <center> <h1>Re: 请问有无办法从TextBox输入运算式?</h1> </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by AOK(帝王世纪) on October 30, 1999 at 00:15:01:<p>In Reply to: <a href="20805.html">请问有无办法从TextBox输入运算式?</a> posted by Tzung on October 29, 1999 at 21:16:41:<p>: 您好!!<br>: 本人使用的是VB6.0专业版。现正以数值分析方法写程式解一元N次方程式。程式部份已证明正确无误,但现正为一问题烦恼:为使本程式使用方便,我想将欲解之方程式由原先在程式码中编写的方式,改由使用者从表单中的TextBox直接输入,但我试过很多方式,结果输入之运算式均被当成是字串,不知如何解决?<p>: 例:我希望使用者输入 X*X+3*X-3-4/X 及 X=2 之后,即可得到答案为 5<p>::: 使用Val函式强制变为数值式做运算 <p><br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 20813--><!--top: 20820--><li><a href="20820.html">Re: 请问有无办法从TextBox输入运算式?</a> <b>琏琏</b> <i>10:16:15 10/30/99</i>(<!--responses: 20820-->1)<ul><!--insert: 20820--><!--top: 20836--><li><a href="20836.html">Re: 请问有无办法从TextBox输入运算式?</a> <b>Honey</b> <i>20:14:14 10/30/99</i>(<!--responses: 20836-->0)<ul><!--insert: 20836--></ul><!--end: 20836--></ul><!--end: 20820--></ul><!--end: 20813--><br><hr size=7 width=75%><p></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?