[Gambas-user] Gambas Scripting Language - Some Questions

Benoît Minisini gambas at ...1...
Thu May 21 20:07:26 CEST 2009


> 2009/5/18 Benoît Minisini <gambas at ...1...>
>
> > > Hello all,
> > > I have some questions about the scripting language. I need a little
> > > help. Question
> > >
> > > Thanks in advance, and have a nice weekend.
> >
> > The scripter works by creating a temporary project from your script, by
> > compiling it, and by running it. The compiled project is cached so that
> > it is
> > used immediately if you run the script again.
> >
> > So:
> > > 1- The gbs2 scripter only have access to the gb. internal native class?
> >
> > No, it can use any component.
> >
> > > 2- How can I use other components as the gb.XML?
> >
> > By using the special instruction USE. For example:
> >
> > USE "gb.xml","gb.xml.rpc"
> >
> > > 3- Why my scripts dont run directly even when I am including the first
> > > line #!/usr/bin/env gbs2?
> >
> > Two possible reasons:
> >
> > - The gbs2 symbolic link does not exist.
> >
> > - It exists, but is not in a directory specified in your PATH environment
> > variable.
> >
> > > 4- How can I pass arguments to the script?
> >
> > Just pass them:
> >
> > $ MyScript A B C
> >
> > Regards,
> >
> > --
> > Benoît
> >
> > Hello again, I am trying to run this script base on what you guys suggest
>
> me, however I received the following error message:
> MMain.GenerateFiles.234: This component doesn't exist : "gb.xml"
> 0: MMain.GenerateFiles.234
> 1: MMain.MakeVirtualProject.140
> 2: MMain.Main.61
>

Is gb.xml installed on your system? Do you see it in the Gambas IDE?

-- 
Benoît




More information about the User mailing list