
152
when the application starts. Since Class Libraries do not have an entry
point, their only option for this property is (None).
For Windows Applications projects, only forms or classes with a Public
Sub Main procedure are available as Startup objects unless you check
the Startup with custom Sub Main checkbox; when this option is checked,
you must add code in the Sub Main procedure for the form.
※
Note:
When using a custom Sub Main procedure as the Startup object,
code in the Application events (Startup, Shutdown, Startup
Next
Instance, and Unhandled
Exception) is not executed
.
The Startup Object
property can be set in the Application pane of the Project Designer.
To change the startup object
1. With a project selected in Solution Explorer, on the Project menu
click Properties.
2. Select the Application pane.
3. Select a Startup object from the Startup object drop-down list.
To set the startup object for a Windows Application to Sub Main
1. With a project selected in Solution Explorer, on the Project menu
click Properties.
2. Select the Application pane.
3. Check the Startup with custom Sub Main checkbox.
4. Select Sub Main from the Startup object drop-down list.
LISTING C.1.
MEASure.bas--THE Sub Main FUNCTION IS WHERE YOU
NEED TO ADD INITIALIZATION CODE.
Sub main()
Dim M3500A As Object
Dim Rdg As Double
' To assign an object reference using CreateObject
Set M3500A = CreateObject("INS001.IOUtils")
M3500A.Refresh
Summary of Contents for M3500A
Page 1: ...An ISO 9001 2000 Company 6 Digit Multimeter M3500A Operation Manual ...
Page 2: ...Operation Manual M3500A DMM ...
Page 6: ......
Page 7: ......
Page 8: ......
Page 9: ......
Page 10: ......
Page 11: ......
Page 26: ...1 2 3 4 5 6 ...
Page 33: ......
Page 34: ......
Page 35: ......
Page 37: ......
Page 38: ......
Page 39: ......
Page 40: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 47: ......
Page 48: ...48 Figure 3 18 5 ...
Page 95: ......
Page 104: ......
Page 151: ......
Page 155: ......