For i = 1 To LastRecord Step 2
Load Record i
DifferenceRecord i + 1
View Difference
Pause 10
Next
2.7.4
Nesting
Control structures may be nested, that is placed one inside another.
If .. Then
can be placed
inside For ... Next loops as seen above, or vice versa. If ... Then can be placed inside another If
... Then as below:
If CountsPerSec < 30000 Then
Print Status, “Count rate too smalll”;
Pause 5
GoTo 20
Else
If ResultValid Then
Print Report
Else
Print dialogue, “Result invalid”
End if
End if
Similarly,
For ... Next
loops can be placed inside other For ... Next loops.
For i = 1 To 5
For j = 1 To 8
Move 20 * i, 10 * j
Box 20 * i + 19, 10 * j + 9
Next
Next
There are limits placed on the number of levels to which you can nest structures.
For example,
For ... Next
loops can be nested to 25 levels. None of the limits should cause you any practical
problems !
You can see from the above examples that it would be easy, in complex structures, to lose track
of the match between
For
and its corresponding Next or between the parts of If ... Then ... Else
... End if You can help to avoid this by indenting each block of statements as in the examples.
2.8
Special programs in Zetasizer Basic
The Zetasizer Basic language is used, not only to provide control and calculation routines, but
also as the standard method of producing result tables and reports. It is also used for special
programs to perform remote reporting and DDE linking.
For a detailed description of the use of Malvern Basic in page design see chapter 3. For DDE
linking see ‘Dynamic Data Exchange’ in the Software Reference Manual and for remote operation
see ‘Remote’ in the Software Reference Manual.
MAN0179
Page 2.10
Zetasizer 1000/2000/3000/4000/5000/4700
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com
Содержание Zetasizer 1000
Страница 11: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...
Страница 16: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...
Страница 34: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...
Страница 38: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...
Страница 116: ...Artisan Scientific Quality Instrumentation Guaranteed 888 88 SOURCE www artisan scientific com...