1 | Object-oriented view, shown in an example script to add the values that the user has typed into two textfields and display it in a third: Sub Button1_OnClick FirstData = CDbl(Document.Form1.Text1.Value) SecondData = CDbl(Document.Form1.Text2.Value) Document.Form1.Text3.Value = FirstData + SecondData End Sub |
2 | Note the Basic (and Fortran-like) syntax that statements are distinguished by being on separate lines. |
3 | Cdbl converts text input string to a double. |