T.R | Title | User | Personal Name | Date | Lines |
---|
3330.1 | | IOSG::MAURICE | Differently hirsute | Mon Sep 27 1993 16:52 | 11 |
| Hi,
Mixing DO scripts and SCRIPT scripts is complex. The rules for when a
SCRIPT script actually fires are complex. So the best thing is not to
try it. In your examples I would be inclined to make the DO scripts
into SCRIPT scripts by prefixing the lines with .FUNCTION directives.
Or alternatively make the SCRIPT script into a DO script.
Cheers
Stuart
|
3330.2 | All SCRIPT scripts - still doesn't work .. | TAV02::CHAIM | Semper ubi Sub ubi ..... | Tue Sep 28 1993 09:42 | 8 |
| Re. .1
I tried making all the scripts into SCRIPT scripts, but the actual script
command is still executed only after the for loop has finished.
Thanks,
Cb.
|
3330.3 | Try without FOR | IOSG::MAURICE | Differently hirsute | Tue Sep 28 1993 14:17 | 32 |
| I had a go, and like you found the FOR loop seemed to prevent the
SCRIPT script firing. I had some success with:
ND.SCP
.fu FOR FIRST PROFIL with .user = "M" DO get #user_name = .%key
.label again
.text #user_name
.fu SCRIPT oa$lib:nd1.scp
.fu get #x = profil.%next[#user_name]
.if #X = "N" then .goto end
.fu get #user_name = #x
.goto again
.label end
ND1.SCP
.fu .text "HI " #user_name
.fu get oa$function="newdir " #user_name
.fu SCRIPT OA$LIB:ND3.scp
ND3.SCP
FC {RETURN}
.exit
This looped through the profile for users whose names began with "M". I
hope that will be enough to get you started.
Cheers
Stuart
|