<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>I tried DSS gallery, but had no luck<br><br>with <font style="" color="#ff0000">sub main()</font> inserted at line 14<br>and <font style="" color="#ff0000">end sub</font> at the end (now line 169)<br><br>There was an error message:<br>   <font style="" color="#0070c0">script error on line 64: Too many parameters</font><br><br>line 64 is<br>  <font style="" color="#76923c">c=new Canvas(w,h,"DSS Gallery")</font><br><br>There it gets to the point that I would have to dive into the scripting manual...<br><br>Celestial Mixmaster probably needs the <font style="" color="#ff0000">sub main(args() as Variant)</font>, but what goes into the <font style="" color="#ff0000">args()</font>? or is args itself an existing function, should there go anything into the ()?<br><br>with either the constants left as as before or moved to within the sub main (I tried both ways)<br><br><font style="" color="#00b0f0">scipt error on line 44: there is no class with this name</font><br><br>that is line<br><font style="" color="#00b050">  function findObjectInPlan( planIdx as Integer, obj as APPlanObjectData, fuzzyMatch as Boolean ) as Integer</font><br><br>(there are many more !s but maybe (hopefully) for the same problem)<br>now I'm lost a again<br><br>Any suggestions?<br>Clear Skies<br>Inge<br><br>> Date: Sat, 28 Feb 2009 10:31:51 +0100<br>> From: robin@lauryssen-mitchell.com<br>> To: apbeta@lists.astroplanner.net<br>> Subject: Re: [APBeta] Running Scripts<br>> <br>> Your script needs to contain a sub called main().  For example<br>> <br>> sub main()<br>>   print "Main part of your program goes here"<br>> end sub<br>> <br>> See <http://www.astroplanner.net/reports/details/1500/1533.shtml><br>> <br>> Paul is working on fixing the scripts.  If there is one or two in <br>> particular that are of interest to you, let me know and I'll see if I <br>> can fix them for you if you like.<br>> <br>> Regards<br>> Robin<br>> <br>> I.R. van de Stadt wrote:<br>> ><br>> > Am I missing something? I can't run any of the scripts, whether <br>> > converted from V1 or newly downloaded.<br>> > The error is usually<br>> ><br>> > Script must contain a (global) main() method.<br>> > i.e. one of:<br>> >   Sub main()<br>> > or<br>> >   Sub main(args() as Variant)<br>> ><br>> > Even 'Observing nights' - created in de V2 era gives an error message:<br>> > Script must not contain any calls to the main() method.<br>> ><br>> > Clear Skies!<br>> > Inge<br>> ><br>> > ------------------------------------------------------------------------<br>> > Ook nieuwsgierig naar de nieuwe Messenger? Download 'm hier <br>> > <http://download.live.com/messenger><br>> > ------------------------------------------------------------------------<br>> ><br>> > _______________________________________________<br>> > APBeta mailing list<br>> > APBeta@lists.astroplanner.net<br>> > http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net<br>> >   <br>> <br>> _______________________________________________<br>> APBeta mailing list<br>> APBeta@lists.astroplanner.net<br>> http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net<br><br /><hr />Twee keer zo leuk. <a href='http://download.live.com/messenger' target='_new'>Deel foto's terwijl je chat met de nieuwe Messenger</a></body>
</html>