|
以下程序在SolidWorks二次开发运行时,系统提醒 “错误13 类型不匹配 ”
- N0 \' b- ~! V$ ~4 |' b哪里除了问题?该怎么修改?请大神给出意见!" O1 W6 \' p% a6 N* d
# {3 T; k _# u/ P8 R
Private Sub Command1_Click()
- R) b# ?0 h: g" J+ \7 }3 g# \: s8 ~Dim A As Single, B As Single9 ^( ]- w# D; Q. W& [: `8 A" I
Dim C As Single, D As Single7 u! a4 O3 W* I2 E
A = Text1.Text
* d; Z: C0 j4 D, A6 {- N9 @$ DB = Text2.Text
5 Z* o* |- W/ A+ `& HC = Text3.Text
4 I* v3 K$ b) i$ L6 kD = Sin(0.5 * Text4.Text * 3.14159 / 180)
+ a/ A$ }/ ?- b8 e( ?0 }Text5.Text = A * (Form9.Text7.Text + Form9.Text4.Text)9 ?8 V. k9 `) M2 _2 ~' j# w
Text6.Text = 2 * Text5.Text * D / (C - 1)% B( P; W' A# B
Text7.Text = C * Text6.Text% }5 N( ]& q9 v1 o7 j
Text8.Text = Sqr(Text5.Text * Text5.Text + Text7.Text * Text7.Text - 2 * Text5.Text * Text7.Text * D)1 W$ |7 Q C M8 ?) y
End Sub |
|