请问那位高手教下在vfp中怎样获得一个0-9的随机数据
来源:百度知道 编辑:UC知道 时间:2024/05/02 14:08:35
懂点皮毛,正在做一个小的表单.非常感谢!
表单中添加一个label1和一个command1
form1 init事件
a=ALLTRIM(STR(int(rand()*10))) 因为caption要字符型的,所以转字符
thisform.label1.caption=a
command1 click事件中
a=ALLTRIM(STR(int(rand()*10)))
thisform.label1.caption=a
thisform.refresh
x=int(rand()*10)