On 14/03/07, MAJ Programming <[EMAIL PROTECTED]> wrote:
>
> I'm gonna throw my 4 cents in to hopefully stop this excessive coding.
>
>
>
> or this doozy of a mess
> OPEN "FILE1" TO F.FILE1 THEN
> OPEN "FILE2" TO F.FILE2 THEN
> OPEN "FILE3" TO F.FILE3 THEN
> <500 LINES OF PROCESSING AS PER APPLICATION>
> END ELSE
> PRINT "CAN'T OPEN FILE3"
> END
> END ELSE
> PRINT "CAN'T OPEN FILE2"
> END
> END ELSE
> PRINT "CAN'T OPEN FILE1"
> END
>
> Please, lets not spend so much effort on this simple task. OPEN them and
> get
> on with it.
>
> However the above is essential if you have to return a message to a
controlling program or web service say and not just stop execution !!
Thats why i prefer a function for file operations rather than a sub then you
can do
IF fileOpenFunc("filename",options,filevar,etc) THEN
<blah>
END ELSE
Err = blah
END
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/