[APBeta] Running Scripts
I.R. van de Stadt
irvandestadt at hotmail.com
Sat Feb 28 14:00:03 PST 2009
I tried DSS gallery, but had no luck
with sub main() inserted at line 14
and end sub at the end (now line 169)
There was an error message:
script error on line 64: Too many parameters
line 64 is
c=new Canvas(w,h,"DSS Gallery")
There it gets to the point that I would have to dive into the scripting manual...
Celestial Mixmaster probably needs the sub main(args() as Variant), but what goes into the args()? or is args itself an existing function, should there go anything into the ()?
with either the constants left as as before or moved to within the sub main (I tried both ways)
scipt error on line 44: there is no class with this name
that is line
function findObjectInPlan( planIdx as Integer, obj as APPlanObjectData, fuzzyMatch as Boolean ) as Integer
(there are many more !s but maybe (hopefully) for the same problem)
now I'm lost a again
Any suggestions?
Clear Skies
Inge
> Date: Sat, 28 Feb 2009 10:31:51 +0100
> From: robin at lauryssen-mitchell.com
> To: apbeta at lists.astroplanner.net
> Subject: Re: [APBeta] Running Scripts
>
> Your script needs to contain a sub called main(). For example
>
> sub main()
> print "Main part of your program goes here"
> end sub
>
> See <http://www.astroplanner.net/reports/details/1500/1533.shtml>
>
> Paul is working on fixing the scripts. If there is one or two in
> particular that are of interest to you, let me know and I'll see if I
> can fix them for you if you like.
>
> Regards
> Robin
>
> I.R. van de Stadt wrote:
> >
> > Am I missing something? I can't run any of the scripts, whether
> > converted from V1 or newly downloaded.
> > The error is usually
> >
> > Script must contain a (global) main() method.
> > i.e. one of:
> > Sub main()
> > or
> > Sub main(args() as Variant)
> >
> > Even 'Observing nights' - created in de V2 era gives an error message:
> > Script must not contain any calls to the main() method.
> >
> > Clear Skies!
> > Inge
> >
> > ------------------------------------------------------------------------
> > Ook nieuwsgierig naar de nieuwe Messenger? Download 'm hier
> > <http://download.live.com/messenger>
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > APBeta mailing list
> > APBeta at lists.astroplanner.net
> > http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net
> >
>
> _______________________________________________
> APBeta mailing list
> APBeta at lists.astroplanner.net
> http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net
_________________________________________________________________
De leukste online filmpjes vind je op MSN Video!
http://video.msn.com/video.aspx?mkt=nl-nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.astroplanner.net/pipermail/apbeta-astroplanner.net/attachments/20090228/da141329/attachment-0003.htm>
More information about the APBeta
mailing list