[Gambas-user] Do I run in the IDE (gambas-1.0.x or later)

Charlie Reinl na2492 at ...9...
Sun Aug 28 15:25:47 CEST 2005


Am Samstag, den 27.08.2005, 19:10 +0200 schrieb Benoit Minisini:
> On Saturday 27 August 2005 19:02, Daniel Campos wrote:
> > >There is no way at the moment, but you can add some program arguments in
> > > the project property dialog. The program will receive these arguments
> > > only it is run from the IDE.
> >
> > Try this code:
> >
> > DIM hComp AS Component
> >
> > FOR EACH hComp IN Components
> >
> >   PRINT hComp.Name
> >
> > NEXT
> >
> > If you use it in a grahical program, you will find:
> >
> > gb.qt
> >
> > if you use the compiled program, but you will find
> >
> > gb.qt
> > gb.eval
> >
> > When using it from the IDE, so if one of the components is "gb.eval" and
> > your
> > program does not use that component, you will know that you are in the
> > "IDE mode".
> >
> > Regards,
> >
> > D. Campos
> >
> 
> May not work in the future :-)
> 
Salut,

thanks for the hint, I have choosen the 'project property dialog' way.
But that don't work when gb.qt.kde is in use.
Starting in the IDE you get 'The program has returned the value : 254'

In Terminal is said:
gbx: Unexpected argument 'ISIDE=TRUE'
gbx: Use --help to get a list of available commandline options


Compiled it ran.

I'm using gambas-1.0.10

Amicalment
Charlie   		  





More information about the User mailing list