|
Mike Buess
USA
3037 Posts |
Posted - 06/09/2005 : 10:27:33 AM
|
Hi Peter,
You can avoid most, probably all, of those problems by launching your button scripts with run.section rather than run.file.
1. Launch CodeBuilder and select File > New. 2. In New File dialog select LabTalk Script File. 3. Enter a file name and enter the same Location you currently use for your script files. 4. Click OK to create and open the file. 5. Edit the file to look something like this...
[Button1] // Paste your scripts for the first button here
[Button2] // Paste scripts for second button
// Add similar sections for all except the Run All button. // That section should look like this...
[RunAll] run.section(,Button1); run.section(,Button2); // etc.
Now change your button settings (View > Toolbars > Button Groups) as follows...
Button 1 settings: File Name: enter path\name selected in Step 3 above Section Name: Button1
Button 2 settings: File Name: same as Button 1 Section Name: Button2
Run All settings: File Name: same Section Name: RunAll
Your scripts will perform better and also be easier to maintain when organized in that fashion.
Mike Buess Origin WebRing Member |
 |
|