在文本框内输入一个三位数据,单击窗体后,在窗体上打印输出该数的个位数,十位数和百位数

2025-04-05 23:21:47
推荐回答(1个)
回答1:

Private Sub Form_Click()
Print Mid(Right(Text1.Text, 1), 1, 1) & "-" & Mid(Right(Text1.Text, 2), 1, 1) & "-" & Mid(Right(Text1.Text, 3), 1, 1)
End Sub