Open "C:\myfile.txt" For Output As 1
Print #1, txtTextbox
Close 1
Dim ret As String
Open "C:\myfile.txt" For Input As 1
Line Input #1, ret
Close 1
q = Round ((a+b)*c)
q = Round ((a+b)*Val(c))
dim q as double
dim a as double
dim b as double
dim c as double
....
'читаем файл
....
'преобразуем в число
a=Cdbl(s1)
b=cdbl(s2)
c=cdbl(s3)
'считаем
q = Round ((a+b)*c)
'выводим
text1.text=cstr(q)
Private Sub Form_Load()
dim q as double
dim a as double
dim b as double
dim c as double
Dim s1 As String, s2 As String, s3 As String
'читаем файл
Open "C:\myfile.txt" For Input As #1
Line Input #1, s1
Line Input #1, s2
Line Input #1, s3
Close #1
'преобразуем в число
a=Cdbl(s1)
b=cdbl(s2)
c=cdbl(s3)
'считаем
q = Round ((a+b)*c)
'выводим
MsgBox cstr(q)
End Sub
Private Sub Form_Load()
Dim s1 As String, s2 As String, s3 As String
Open "C:\myfile.txt" For Input As #1
Line Input #1, s1
Line Input #1, s2
Line Input #1, s3
Close #1
a=Cdbl(s1)
b=Cdbl(s2)
c=Cdbl(s3)
'считаем
q = Round ((a+b)*c)
'выводим
MsgBox cstr(q)
Dim x As Integer
Private Sub Form_Click()
MsgBox x
End Sub
Private Sub Form_Load()
Dim x
x = "String"
MsgBox x
End Sub
Function F(x)
Dim x
End Function
Сейчас этот форум просматривают: Majestic-12 [Bot] и гости: 59