[Gambas-user] [Ask] Gambas script programming

zainudin ahmad author.ilmi at ...626...
Thu Sep 17 04:27:41 CEST 2015


I am use application.path for to know binary file in tmp directory(not
worried again for  use it) and for args[0] I can use file.name() method for
get the file name.

thanks .

On Wed, Sep 16, 2015 at 12:15 PM, Fabien Bodard <gambas.fr at ...626...> wrote:

> It normal as the scripter make an executable in a tmp folder and then
> execute it.
> Le 16 sept. 2015 04:49, "zainudin ahmad" <author.ilmi at ...626...> a écrit :
>
> > Hi Friends
> >
> >
> > I am new in gambas script programming world, I have some question.
> >
> > * this is normal ? run this code (save the file not in tmp directory and
> > the command only ./test.gs3)
> >
> > #!/usr/bin/env gbs3
> >
> > public sub main()
> >     print args[0]
> >     print application.path
> > end
> >
> >
> > the result is
> >
> > /tmp/gambas.1000/script-cache/3322f0f532ed56c9b09aa662781e9ff3/test.gs3
> > /tmp/gambas.1000/script-cache/3322f0f532ed56c9b09aa662781e9ff3
> >
> >
> > * there is any official or recomended file extension for gambas script
> and
> > gambas server pages file.  like  *.gs3 , *.gps  or etc .. ?
> >
> > * gambas editor not highlight when open gambas script or gambas server
> > pages file, it's normal ? attach pic
> >
> >
> > Sorry for my English
> >
> > Regards
> >
> >
> >
> ------------------------------------------------------------------------------
> > Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> > Get real-time metrics from all of your servers, apps and tools
> > in one place.
> > SourceForge users - Click here to start your Free Trial of Datadog now!
> > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list