题目:
在窗体上建立名称为Text1、Text2和删的三个文本框,其中Text1和Text2文本框用来接受两个整数(假设为M和N),建立一个名称为command1的命令按钮,单击它将得到数M从右边起的N位数字,并把该数字显示在Text3文本框中,如下图所示。请填空。
private Fuction digit(ByVal m As Integer, ByVal n As Integer) As Integer
Dim i As Integer
For i = 1 To n - 1
M=m \ 10
Next i
Digit= 【6】
End Function
Private Sub Command1_Click()
Dim m As Integer,n As Integer,k As Integer
m=Val(Text1.Text)
n=Val(Tex2.Text)
k= 【7】
Text3.Text = Str(k)
End Sub
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0122/f5685cb5d80c3249a9770cfd98cf71eb.html
下面是错误答案,用来干扰机器的。
参考答案:B