Re: [Gambas-user] (no subject)

2016-03-11 Thread Benoît Minisini
Le 12/03/2016 00:44, Ru Vuott a écrit :
> To:  Benoît
>
> No, it does not work.
> In console I obtain simply like an empty newline (...carriage return).
>

Can you send me a little project?

-- 
Benoît Minisini

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2016-03-11 Thread Ru Vuott
To:  Benoît

No, it does not work.
In console I obtain simply like an empty newline (...carriage return).


To: Gianluigi

I forgot change italian "percorso" word to "path"... a simple mistake, but even 
adjusting the variable name, the problem is not eliminated.

regards
vuott




Ven 11/3/16, Gianluigi <bagone...@gmail.com> ha scritto:

 Oggetto: Re: [Gambas-user] (no subject)
 A: "mailing list for gambas users" <gambas-user@lists.sourceforge.net>
 Data: Venerdì 11 marzo 2016, 22:29
 
 Hello vuott,
 It is true it works, if instead of
 "percorso" put "path" your code
 works.
 Regards
 Gianluigi
 
 2016-03-11 22:01 GMT+01:00 Benoît Minisini
 <gam...@users.sourceforge.net>:
 
 > Le 09/03/2016 11:46, Ru
 Vuott a écrit :
 > > Hello,
 > >
 > >
 "before", by using this simple code (gbdesktop and
 gb.desktop.x11):
 > >
 > > Public Sub Button1_Click()
 > >
 >
 >   Dim df As DesktopFile
 >
 >   Dim path As String
 >
 >
 > >    percorso =
 "/path/of/the/file"
 > >
 > >   For Each df In
 DesktopFile.FromMime(DesktopMime.FromFile(path).Type)
 > >      Print df.ProgramName
 > >    Next
 >
 >
 > > End
 >
 >
 > > I "was" able to
 know the applications associated (by default and those
 > by me choosen) with a file.
 > >
 > > Regards
 > > vuott
 >
 > And now?
 >
 > --
 > Benoît
 Minisini
 >
 >
 >
 --
 > Transform Data into Opportunity.
 > Accelerate data analysis in your
 applications with
 > Intel Data Analytics
 Acceleration Library.
 > Click to learn
 more.
 > http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
 >
 ___
 > Gambas-user mailing list
 > Gambas-user@lists.sourceforge.net
 > https://lists.sourceforge.net/lists/listinfo/gambas-user
 >
 --
 Transform Data into Opportunity.
 Accelerate data analysis in your applications
 with
 Intel Data Analytics Acceleration
 Library.
 Click to learn more.
 http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2016-03-11 Thread Gianluigi
Hello vuott,
It is true it works, if instead of "percorso" put "path" your code works.
Regards
Gianluigi

2016-03-11 22:01 GMT+01:00 Benoît Minisini :

> Le 09/03/2016 11:46, Ru Vuott a écrit :
> > Hello,
> >
> > "before", by using this simple code (gbdesktop and gb.desktop.x11):
> >
> > Public Sub Button1_Click()
> >
> >   Dim df As DesktopFile
> >   Dim path As String
> >
> >percorso = "/path/of/the/file"
> >
> >   For Each df In DesktopFile.FromMime(DesktopMime.FromFile(path).Type)
> >  Print df.ProgramName
> >Next
> >
> > End
> >
> > I "was" able to know the applications associated (by default and those
> by me choosen) with a file.
> >
> > Regards
> > vuott
>
> And now?
>
> --
> Benoît Minisini
>
>
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2016-03-11 Thread Benoît Minisini
Le 09/03/2016 11:46, Ru Vuott a écrit :
> Hello,
>
> "before", by using this simple code (gbdesktop and gb.desktop.x11):
>
> Public Sub Button1_Click()
>
>   Dim df As DesktopFile
>   Dim path As String
>
>percorso = "/path/of/the/file"
>
>   For Each df In DesktopFile.FromMime(DesktopMime.FromFile(path).Type)
>  Print df.ProgramName
>Next
>
> End
>
> I "was" able to know the applications associated (by default and those by me 
> choosen) with a file.
>
> Regards
> vuott

And now?

-- 
Benoît Minisini

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2016-03-09 Thread Ru Vuott
Hello,

"before", by using this simple code (gbdesktop and gb.desktop.x11):

Public Sub Button1_Click()
 
 Dim df As DesktopFile  
 Dim path As String  
  
  percorso = "/path/of/the/file"  
 
 For Each df In DesktopFile.FromMime(DesktopMime.FromFile(path).Type)
Print df.ProgramName  
  Next 
 
End

I "was" able to know the applications associated (by default and those by me 
choosen) with a file.

Regards
vuott


[System]
Gambas=3.8.90 r7626
OperatingSystem=Linux
Kernel=3.19.0-32-generic
Architecture=x86_64
Distribution=Linux Mint 17.3 Rosa
Desktop=GNOME
Theme=Cleanlooks
Language=it_IT.UTF-8
Memory=1244M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.2.1
SDL=libSDL-1.2.so.0.11.4

[Environment]
CLUTTER_BACKEND=x11
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-EWRHxTIG57,guid=d66a9c093eff33b04b14a0d856dfdf04
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=cinnamon
GDM_XSERVER_LOCATION=local
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-NMk8yk
GPG_AGENT_INFO=/run/user/1000/keyring-NMk8yk/gpg:0:1
HOME=
INSIDE_NEMO_PYTHON=
LANG=it_IT.UTF-8
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
MDMSESSION=cinnamon
MDM_LANG=it_IT.UTF-8
MDM_XSERVER_LOCATION=local
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=
QT_STYLE_OVERRIDE=gtk
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1538,unix/:/tmp/.ICE-unix/1538
SHELL=/bin/bash
SSH_AGENT_PID=1669
SSH_AUTH_SOCK=/run/user/1000/keyring-NMk8yk/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
USER=
USERNAME=
WINDOWPATH=8
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=00bbf8687c0641e38c05d54254ef59ed-1457512194.246155-122942153
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_VTNR=8

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2014-06-04 Thread Fabián Flores Vadell
Hi folks.

I'm trying to implement a decoration chain, but until now I can't get
success.

Let me explain the problem in detail.

I have a class C, that is decorated by the class B, that is decorated by
the class A. So, from the point of view of the client class, the class A
must respond to messages from both, class B and class C.

The decoration is implemented by delegation, not by inheritance. Besides,
in some cases a class A must call just some messages belonging to class B,
and the same respect the class C.

I found relatively easy to do this using the special methods _property and
_unknown, but only when the relation involves two classes and restricting
to just properties or methods (not both).

Someone, knows how this can be achieved in Gambas?

If not, (to Benoit and dev team) would be possible to add a feature to
Gambas in order to do the implementation of decoration patterns easier?

I know, I know, is perfectly possible to do this in Gambas by writing the
appropiate wrappers for those desired methods and properties belonging to
other classes. The point is: this kind of code is boring to write,
bothering at code reading time, and inconvenient for prototyping.

SFMBE.
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2013-12-30 Thread Ru Vuott
Hello,

an our friend, member of italian Gambas forum (www.gambas-it.org), wrote that 
when he tries to put on a Form icon of Printer component, this icon does not 
show, it does not appear on the form.

Here is his system:

[System]
Gambas=3.5.1
OperatingSystem=Linux
Kernel=3.11.0-15-generic
Architecture=x86_64
Distribution=Ubuntu 13.10
Desktop=GNOME
Theme=QGtk
Language=it_IT.UTF-8
Memory=3829M
[Libraries]
Cairo=libcairo.so.2.11200.16
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.4
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.200.0
GTK+=libgtk-x11-2.0.so.0.2400.20
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.43.0.0
Qt4=libQtCore.so.4.8.4
SDL=libSDL-1.2.so.0.11.4


Well, he said this problem also existed with the Gambas version 3.1.1 with 
Ubuntu 13.10.

What problem can be ?
What can he do ?

Thanks
vuott

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2013-12-07 Thread Mike Crean
Me to. Keep it the same as most BASIC's use the underscore _ as line
extension.
 
Regards to all Mike
 
PS if you do it, have a
merry Christmas
--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2013-12-02 Thread Mike Crean
Hey boys, I am trying to emulate the terminal string sudo sh -c
'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on
BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell,
sudo sh -c 'echo out /sys/class/gpio/gpio27/direction']
and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out
/sys/class/gpio/gpio27/direction' any help please. 

 I
have also tried shell sudo sh -c 'echo out
/sys/class/gpio/gpio27/direction' this runs with out error and
but will not change data in the direction file. It stays at the old
value of in. 

 If
I run it from a terminal the string works fine. 

 Thanks
in advance
Mike
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2013-12-02 Thread Jussi Lahtinen
Given string to exec is invalid.
http://gambasdoc.org/help/lang/exec?v3


shell sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'

Why this would do anything?
sudo is without any input, unnecessary sh -c and then command which
output should be out /sys/class/gpio/gpio27/direction. If you want to put
word out to file, you need to use direction. Example echo out 
/sys/class/gpio/gpio27/direction. I don't think your command works in
terminal either.

Maybe you want to do something like this: gksudo echo out 
/sys/class/gpio/gpio27/direction ?


Jussi




On Mon, Dec 2, 2013 at 1:28 PM, Mike Crean mike.cr...@y7mail.com wrote:

 Hey boys, I am trying to emulate the terminal string sudo sh -c
 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on
 BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell,
 sudo sh -c 'echo out /sys/class/gpio/gpio27/direction']
 and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out
 /sys/class/gpio/gpio27/direction' any help please.

  I
 have also tried shell sudo sh -c 'echo out
 /sys/class/gpio/gpio27/direction' this runs with out error and
 but will not change data in the direction file. It stays at the old
 value of in.

  If
 I run it from a terminal the string works fine.

  Thanks
 in advance
 Mike

 --
 Rapidly troubleshoot problems before they affect your business. Most IT
 organizations don't have a clear picture of how application performance
 affects their revenue. With AppDynamics, you get 100% visibility into your
 Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics
 Pro!
 http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2013-04-30 Thread kadri Yusuf

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2013-02-22 Thread Mike Crean
Thanks Bruce,

Have tried the magic line although nothing like yours. I have now tried it and 
again no joy.
As there is no env in /bin I have tried #!/user/bin/env and #!/usr/bin/gbw3 and 
many other combinations.
I have saved the file as text named index.html from the text editor into 
/var/www. thanks for the help and any other suggestions.

Mike

#!/bin/env /usr/bin/gbw3 
Gambas3 Web Server.
 % print A01 ON % 

and many other combinations

#!/user/bin/env /usr/bin/gbw3 
Gambas3 Web Server.
 % print A01 ON % 
 
Mike
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2013-02-22 Thread Randall Morgan
Just some thoughts

Does your machine have the symbolic link gbw3 ?

Is Apache setup to handle this as a CGI?



On Fri, Feb 22, 2013 at 12:43 AM, Mike Crean mike.cr...@y7mail.com wrote:
 Thanks Bruce,

 Have tried the magic line although nothing like yours. I have now tried it 
 and again no joy.
 As there is no env in /bin I have tried #!/user/bin/env and #!/usr/bin/gbw3 
 and many other combinations.
 I have saved the file as text named index.html from the text editor into 
 /var/www. thanks for the help and any other suggestions.

 Mike

 #!/bin/env /usr/bin/gbw3
 Gambas3 Web Server.
  % print A01 ON %

 and many other combinations

 #!/user/bin/env /usr/bin/gbw3
 Gambas3 Web Server.
  % print A01 ON %

 Mike
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
If you ask me if it can be done. The answer is YES, it can always be
done. The correct questions however are... What will it cost, and how
long will it take?

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2012-10-16 Thread Fabián Flores Vadell
Hi Benoît.

I read you message in the french mailing list about that class overriding
is retrospective now, saying more or less this:



If you reimplements a existing class named A, the effect will be
retroactive on other classes already loaded and optimized using the Class A.

Before it was not.

It will, for example, load a library reimplementing one class during the
execution of a program with retroactive effect.



Could you clarify this, please?

* Does this mean that is possible to do hot changes to any class in a
library, i.e. one I using on the current Gambas project?

* Does this includes to classes in components used in the current project?

* And what about classes in my current project? Could I change them while
my program is executing?

* Would be possible change a binary file containing a library to a new
version while a program is executing?

* Classes using the overridden Class A: Does this includes subclasses and
classes using it as a collaborator (composition)?

* load a library reimplementing one class during the execution of a
program with retroactive effect: So this is a new feature added to the
instrospective capabilities of Gambas going to be a more reflective
language (a mean reification/intercession).

* Does this apply only to a root class in a hierarchy? Any class in a
hierarchy? Any class even not in a hierarchy?

Excuse me to be as verbose to ask but, you know, my English is poor, so I
never know if, actually, my questions are enough clear.

Regards.


-- 
Fabián Flores Vadell
www.comoprogramarcongambas.blogspot.com
www.speedbooksargentina.blogspot.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2012-04-11 Thread Andreas Fröhlke
Hello,

we read in a forum, that gambas3 searches in 2 pathes for gambas libraries. Is 
there a way to add pathes or edit them? If not, is gambas3 searching 
recursively, so we can put our library in a subfolder?

Regards

Andreas Fröhlke

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2012-04-11 Thread pete b.
Hi all,

I'm trying to run slcreator (a slide show creator) and it requires gambas.
I tried to build gambas but it did not configure correctly.
So, then I ran 'yum install gambas'.  Next, I ran the following:
[root@user-desktop slcreator]# ./slcreator
ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be preloaded:
ignored.
ERROR: #27: Cannot load component '/usr/lib/gambas/lib.gb.qt.so':
/usr/lib/gambas/lib.gb.qt.so: cannot open shared object file: No such file
or directory

[root@user-desktop slcreator]# ls /usr/lib/gambas
lib.gb.component

What would be a prudent next step?

thanks,
pete.
--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-04-11 Thread Randall Morgan
Looks like you may not have all the dependencies installed. Try installing
or re-installing qt3.

On Wed, Apr 11, 2012 at 5:14 AM, pete b. phpet...@gmail.com wrote:

 Hi all,

 I'm trying to run slcreator (a slide show creator) and it requires gambas.
 I tried to build gambas but it did not configure correctly.
 So, then I ran 'yum install gambas'.  Next, I ran the following:
 [root@user-desktop slcreator]# ./slcreator
 ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be preloaded:
 ignored.
 ERROR: #27: Cannot load component '/usr/lib/gambas/lib.gb.qt.so':
 /usr/lib/gambas/lib.gb.qt.so: cannot open shared object file: No such file
 or directory

 [root@user-desktop slcreator]# ls /usr/lib/gambas
 lib.gb.component

 What would be a prudent next step?

 thanks,
 pete.

 --
 Better than sec? Nothing is better than sec when it comes to
 monitoring Big Data applications. Try Boundary one-second
 resolution app monitoring today. Free.
 http://p.sf.net/sfu/Boundary-dev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?
--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-03-22 Thread John Rose
In regard to Basic on Android, I have been checking out Basic4android.
This works OK under Virtual Box  Windows XP. However, on Ubuntu Lucid
under Wine 1.4rc6 it works (after running fixes for AndroidSDK use of
Android AVD Manager and installation of .Net2.0) with one major problem.
After creating code for a project in its IDE, saving the project  then
opening the project, the code can no longer be seen in the IDE. I have
posted a bug against Basic4android in Wine. But it is not predictable
when the Wine devs will fix it. Its IDE and Basic language look inferior
to Gambas. 

It might be worth downloading  installing the trial version for any
dev(s) who would want to develop Gambas for Android. If any dev(s)
wanted to do this, I would be very happy to assist with testing 
documentation etc. 


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2012-03-20 Thread Mathias Maes
Hello,

Gambas is great, but there is one small thing why it isn't widly used. No
cross-platform.
Well, I know only a little bit of the inner workings of Gambas, but:

I've been looking to a lot of event-driven Basic dialects, and the best
one, that was most widely useable: RealBasic.
Why? Just because it one-click compiles to Windows/Mac/Linux. Altough,
porting everything to Windows/Mac is not realistic and not desirable.

This is just my opinion, so any comments are most welcome. A short list:

-Porting the Gambas IDE to Windows/Mac is pointless. Why?
In general, Windows developers don't care about Linux users, we just don't
have enough buying potentional. (Mac development is on the rise, because
Mac is just more and more mainstream).
Even if they want to, those languages just already excist for a long time,
there is no reason why those few developers would switch.

-Gambas is interpreted, so just porting the interpreter would do the job?
Now a little question to Benoït, how long would it take to port the
interpreter to Win (and/or Mac), if you make an estimated guess.

If we all support a small donation, maybe we could hire a freelancer, who
ports the interpreter.

Any comments?
Thank you for reading
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-03-20 Thread Bruce Bruen
On Tue, 2012-03-20 at 10:03 +0100, Mathias Maes wrote:
 Hello,
 
 Gambas is great, but there is one small thing why it isn't widly used. No
 cross-platform.
 Well, I know only a little bit of the inner workings of Gambas, but:
 
 I've been looking to a lot of event-driven Basic dialects, and the best
 one, that was most widely useable: RealBasic.
 Why? Just because it one-click compiles to Windows/Mac/Linux. Altough,
 porting everything to Windows/Mac is not realistic and not desirable.
 
 This is just my opinion, so any comments are most welcome. A short list:

I suppose that there exists, somewhere, in some uncharted galaxy,
lifeforms that would like to see their Linux applications  work on other
operating systems.  Me, nyah.  I'm more interested in converting other
operating system sufferers into Linux users and ultimately advocates.

Let me explain a bit of background.  I started seriously using Linux
whenever it was that XP2 SP3 came out, after having used Windows since
3.0 (yes!).  Until that (XP2.SP3) disaster was released I had been a
true believer that Microsoft would continue to improve and enhance what
appeared to be a reasonable platform for developing and deploying small
business and bespoke software applications.  By bespoke, I mean very
niche, very specific applications that suited a small customer audience.

I did some, what I consider to be nice applications using MSAccess and
VBA that until about 6 years ago netted me a liveable income.
When .net, asp, php, MSSQL server came out I tried porting the bases of
those applications. BLUH! All I ended up with was a need to employ
JUNIOR programmers to try to fix all the problems that arise from such a
wide, mismanaged, buggy and IMO useless set of platforms.

(Aside. These were not insignificant pieces of software, they include
apps that extract and match patient details from government pathology
databases and present the data for statistical analysis, apps that
review and correlate mining information from aerial surveys, and a few
others.  The point being, they were complex and of very little use to a
wide audience.)

Around about 4 years ago I met a man who had a very, very specific
problem.  There was no software available on commercial platforms that
could solve it .. in the manner that he wanted.  He was a trainer of
thoroughbred race horses and just wanted a program that would let him
manage his horses training schedules, trials, race entries etc etc
etc^99.   
 
In other words, he knew exzactly what he wanted and exzactly what he
didn't want.  He had been fighting to run a business for ten years,
paying a large amount of money to a bunch of spreadsheet pirates and
never getting that exzactly.

At that time I knew exactly zero about the horse racing industry.  (I
reckon I now know about 2% of it :-;  ) Also, co-incidentally I had just
discovered Gambas 2, which looked (from my point  view) like where VBA
should have gone in the first place.  So, I said (heroically as usual
when faced by a challenge), How about I come down and see what (those
exzactlies are ... and see if I can come up with a answer.

Short cut to end of story.  We, (private company with 4 employees) now
have 36 customers. All 36 are using Linux to run their training regimes.
This year, 2011-12 we are basically breaking even, and even hope ... X
fingers .. to make a little profit.  (Benoit, you'll be the second to
know!).  

A few technical details:
Base gambas deployment - gambas 2 (stability - around 97% (a few
outstanding gb2 features still exist, but mainly we have workarounds)
Code size - approx 23,000 lines. GASP! Relax, this includes comments,
design notes, TODO's etc. There is, at a guess maybe 7-8 thousand
executable lines, of code.
Underlying database - postgresql. Do not even think of attempting to
suggest something different starting with M.
The database is both segmented and distributed. Each trainer can see
their own data, but no-one elses. Each trainer has their own copy of
their own data. The central database exists mainly as a backup for the
trainers local db. It currently has over 14,000,000 rows.  We do provide
some views into the central db regarding public data like scheduling
for trials.  This includes my biggest nightmare regarding timezones, as
some trainers reside in one state (timezone) and trial in another.

Current projects:
1) Move EVERYTHING to gb3!
1.1) Move all clients to gb3

2) About 29 gazillion requested enhancements. Only one has priority, we
currently use nightmare code to parse trackwork details.  Let me
explain. The trackwork manager has an Android pad (I will not support
any other product!) At the moment all they can do is email in the
mornings trackwork data. It has to be in a specific format and THEY have
to make sure it is formatted correctly.  Now it would be kind of nice if
they had, say, something like a webpage to enter the details into ...
hmmm, haven't I heard talk about that somewhere around here?

Do I want to take on the 

Re: [Gambas-user] (no subject)

2012-03-20 Thread Mathias Maes
Pretty cool story actually!
I hope you make some profit this year!

But, the underlying techniques you're using (postgrsql) works perfectly
under Windows.
GTK (the frontend that gambas can use) works perfectly under Windows.

I'm not a Windows user, but wouldn't it be great if you could sell your
product to Windows users?
Without porting your code? Because, if the interpreter is ported, your code
would stay the same, the interpreter knows what to do with it on the
Windows platform.

Cheers

2012/3/20 Bruce Bruen bbr...@paddys-hill.net

 On Tue, 2012-03-20 at 10:03 +0100, Mathias Maes wrote:
  Hello,
 
  Gambas is great, but there is one small thing why it isn't widly used. No
  cross-platform.
  Well, I know only a little bit of the inner workings of Gambas, but:
 
  I've been looking to a lot of event-driven Basic dialects, and the best
  one, that was most widely useable: RealBasic.
  Why? Just because it one-click compiles to Windows/Mac/Linux. Altough,
  porting everything to Windows/Mac is not realistic and not desirable.
 
  This is just my opinion, so any comments are most welcome. A short list:

 I suppose that there exists, somewhere, in some uncharted galaxy,
 lifeforms that would like to see their Linux applications  work on other
 operating systems.  Me, nyah.  I'm more interested in converting other
 operating system sufferers into Linux users and ultimately advocates.

 Let me explain a bit of background.  I started seriously using Linux
 whenever it was that XP2 SP3 came out, after having used Windows since
 3.0 (yes!).  Until that (XP2.SP3) disaster was released I had been a
 true believer that Microsoft would continue to improve and enhance what
 appeared to be a reasonable platform for developing and deploying small
 business and bespoke software applications.  By bespoke, I mean very
 niche, very specific applications that suited a small customer audience.

 I did some, what I consider to be nice applications using MSAccess and
 VBA that until about 6 years ago netted me a liveable income.
 When .net, asp, php, MSSQL server came out I tried porting the bases of
 those applications. BLUH! All I ended up with was a need to employ
 JUNIOR programmers to try to fix all the problems that arise from such a
 wide, mismanaged, buggy and IMO useless set of platforms.

 (Aside. These were not insignificant pieces of software, they include
 apps that extract and match patient details from government pathology
 databases and present the data for statistical analysis, apps that
 review and correlate mining information from aerial surveys, and a few
 others.  The point being, they were complex and of very little use to a
 wide audience.)

 Around about 4 years ago I met a man who had a very, very specific
 problem.  There was no software available on commercial platforms that
 could solve it .. in the manner that he wanted.  He was a trainer of
 thoroughbred race horses and just wanted a program that would let him
 manage his horses training schedules, trials, race entries etc etc
 etc^99.

 In other words, he knew exzactly what he wanted and exzactly what he
 didn't want.  He had been fighting to run a business for ten years,
 paying a large amount of money to a bunch of spreadsheet pirates and
 never getting that exzactly.

 At that time I knew exactly zero about the horse racing industry.  (I
 reckon I now know about 2% of it :-;  ) Also, co-incidentally I had just
 discovered Gambas 2, which looked (from my point  view) like where VBA
 should have gone in the first place.  So, I said (heroically as usual
 when faced by a challenge), How about I come down and see what (those
 exzactlies are ... and see if I can come up with a answer.

 Short cut to end of story.  We, (private company with 4 employees) now
 have 36 customers. All 36 are using Linux to run their training regimes.
 This year, 2011-12 we are basically breaking even, and even hope ... X
 fingers .. to make a little profit.  (Benoit, you'll be the second to
 know!).

 A few technical details:
 Base gambas deployment - gambas 2 (stability - around 97% (a few
 outstanding gb2 features still exist, but mainly we have workarounds)
 Code size - approx 23,000 lines. GASP! Relax, this includes comments,
 design notes, TODO's etc. There is, at a guess maybe 7-8 thousand
 executable lines, of code.
 Underlying database - postgresql. Do not even think of attempting to
 suggest something different starting with M.
 The database is both segmented and distributed. Each trainer can see
 their own data, but no-one elses. Each trainer has their own copy of
 their own data. The central database exists mainly as a backup for the
 trainers local db. It currently has over 14,000,000 rows.  We do provide
 some views into the central db regarding public data like scheduling
 for trials.  This includes my biggest nightmare regarding timezones, as
 some trainers reside in one state (timezone) and trial in another.

 Current projects:
 1) Move EVERYTHING to 

Re: [Gambas-user] (no subject)

2012-03-20 Thread Rob Kudla
On 03/20/2012 05:03 AM, Mathias Maes wrote:
 If we all support a small donation, maybe we could hire a freelancer, who
 ports the interpreter.
 Any comments?

We all don't run Windows. I haven't owned a machine running Windows in
10 years, and have never owned any Apple products. There was an effort
to port Gambas to Windows a few years back, but as far as I know it was
abandoned.

Rob

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-03-20 Thread Mathias
Me neither, I never use Windows/Mac.

It's not really for us. More for the users we develop for.
It would be nice if we could distribute our app to 95% of all computerusers, 
instead of 2%.

As I said before: I'm not proposing to port Gambas to Windows, only the 
interpreter.

 We all don't run Windows. I haven't owned a machine running Windows in
 10 years, and have never owned any Apple products. There was an effort
 to port Gambas to Windows a few years back, but as far as I know it was
 abandoned.
 
 Rob
 
 --
 This SF email is sponsosred by:
 Try Windows Azure free for 90 days Click Here 
 http://p.sf.net/sfu/sfd2d-msazure
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-03-20 Thread Rolf-Werner Eilert
Hi Mathias,

 GTK (the frontend that gambas can use) works perfectly under Windows.

Wasn't Qt made for use with Windows, too?


 I'm not a Windows user, but wouldn't it be great if you could sell your
 product to Windows users?
 Without porting your code? Because, if the interpreter is ported, your code
 would stay the same, the interpreter knows what to do with it on the
 Windows platform.


If it really was so easy :-)

Just think of streams, files and their rights, System.User.Home or 
date/time... The problem is not the GUI and some links to manage a 
DropBox, but it's the bunch of inner functions that make you program in 
Gambas. I do not have that much idea about the whole problem, but I 
think this is the bigger problem. So a transparent layer to the Windows 
world of each and every function would probably solve these things, but 
it would make Gambas programs run slowly like VB.net.

Currently I'm sitting in front of a Linux with Gambas2 and are 
programming for my own business. Years ago, my brother-in-law has got a 
small order management programmed in VB 3 for his Windows machines from 
me. It's still running under XP on one of his machines, but now I'm 
making a new one (which is urgently needed).

This time, I use Gambas2. Yes, it would be definitely easier for me if I 
could program this beast on my Linux system and just copy it to his 
machine. But it will be possible to somehow get a Linux running on his 
office PC for this, as it's mainly my wife and sister-in-law who are 
working with it, and my wife has a Linux on her laptop and knows it ;-)

What springs up to my mind here is Scribus (do you know it?). Great 
stuff. They had the same discussion couple of years ago and decided to 
give it a try. Now it runs flawlessly in all the three worlds, Linux, 
Mac and Windows, and this was not the last reason for its growing 
popularity.

So don't get me wrong, I'd appreciate the idea, but I think it's a 
pretty hard way to go. It might pay in the end, but you have to really 
be there first. The folks on this list, however, are not the proper 
audience because they WANT to program for Linux. When this idea has 
matured, it may attract additional users. This was what I saw happening 
for the Scribus community.

Just my 2 cents...

Rolf

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-03-20 Thread Benoît Minisini
Le 20/03/2012 16:27, Rob Kudla a écrit :
 ...
 Someone did get the Gambas 1.x interpreter ported,
 if I remember correctly, but porting gb.qt (at the time gb.gtk wasn't
 mature) was problematic due to Windows having no X server. So it would
 run command-line hello world type stuff but that was about it.

 Rob


I did that. Trying to compile and run Gambas on Windows through Cygwin.

But it was too difficult. Mainly because Windows XP has missing features 
at the OS level to property emulate the Unix behaviour, so some Windows 
specific code would be needed.

I don't have the time to write Windows specific code. Moreover, I don't 
want to spend one more minute on a operating system I dislike and I 
don't care anymore.

I prefer studying theater (for example), playing music, or developing 
Gambas on Linux.

And a Gambas port is important, it would be Android. Not Windows.

Regards,

-- 
Benoît Minisini

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-03-20 Thread richard terry
On Wednesday 21 March 2012 06:05:35 Benoît Minisini wrote:

Hopefully windows will die out one day... and anyone buying a mac probably 
has rocks in their brain anyway...

Viva Linux

Richard

 Le 20/03/2012 16:27, Rob Kudla a écrit :
  ...
  Someone did get the Gambas 1.x interpreter ported,
  if I remember correctly, but porting gb.qt (at the time gb.gtk wasn't
  mature) was problematic due to Windows having no X server. So it would
  run command-line hello world type stuff but that was about it.
 
  Rob
 
 I did that. Trying to compile and run Gambas on Windows through Cygwin.
 
 But it was too difficult. Mainly because Windows XP has missing features
 at the OS level to property emulate the Unix behaviour, so some Windows
 specific code would be needed.
 
 I don't have the time to write Windows specific code. Moreover, I don't
 want to spend one more minute on a operating system I dislike and I
 don't care anymore.
 
 I prefer studying theater (for example), playing music, or developing
 Gambas on Linux.
 
 And a Gambas port is important, it would be Android. Not Windows.
 
 Regards,
 

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-01-30 Thread Andreas Fröhlke
Sorry, here it is

Regards,

Andreas

-Ursprüngliche Nachricht-
Von: Benoît Minisini [mailto:gam...@users.sourceforge.net] 
Gesendet: Samstag, 28. Januar 2012 02:14
An: mailing list for gambas users
Betreff: Re: [Gambas-user] (no subject)

Le 27/01/2012 11:36, Andreas Fröhlke a écrit :
 Hi again,

 thanks for the solution for question 1. I think i don't understood how the 
 parameters padding, margin and spacing work in gambas3. Now i understood and 
 it's fine :)

 2. I've made a 2 screenshots of the same program in gambas3 and gambas2, so i 
 hope you see what i mean.

 Regards

 Andreas


I need your project!

-- 
Benoît Minisini

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Test.tar.gz
Description: Test.tar.gz
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-01-30 Thread Benoît Minisini
Le 30/01/2012 14:23, Andreas Fröhlke a écrit :
 Sorry, here it is

 Regards,

 Andreas


OK, I see: this is because of the widget theme (oxygen for example). I 
think if you change your widget theme, then you may find one that does 
not add any margin inside TextBox and other controls.

Regards,

-- 
Benoît Minisini

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-01-30 Thread Andreas Fröhlke
Ok, i will try. Thanks a lot

Regards,

Andreas

-Ursprüngliche Nachricht-
Von: Benoît Minisini [mailto:gam...@users.sourceforge.net] 
Gesendet: Dienstag, 31. Januar 2012 01:04
An: mailing list for gambas users
Betreff: Re: [Gambas-user] (no subject)

Le 30/01/2012 14:23, Andreas Fröhlke a écrit :
 Sorry, here it is

 Regards,

 Andreas


OK, I see: this is because of the widget theme (oxygen for example). I 
think if you change your widget theme, then you may find one that does 
not add any margin inside TextBox and other controls.

Regards,

-- 
Benoît Minisini

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-01-27 Thread Andreas Fröhlke
Hi again,

thanks for the solution for question 1. I think i don't understood how the 
parameters padding, margin and spacing work in gambas3. Now i understood and 
it's fine :)

2. I've made a 2 screenshots of the same program in gambas3 and gambas2, so i 
hope you see what i mean.

Regards

Andreas

-Ursprüngliche Nachricht-
Von: Benoît Minisini [mailto:gam...@users.sourceforge.net] 
Gesendet: Mittwoch, 25. Januar 2012 17:21
An: mailing list for gambas users
Betreff: Re: [Gambas-user] (no subject)

Le 25/01/2012 16:08, Andreas Fröhlke a écrit :
 Hi Benoît,



 we're using gambas about 6 years. Now we take a look at gambas3 and have two 
 questions:



 1. Why did you make the spacing property of a container to a boolean, instead 
 of leaving it as an integer? It's really frustrating, that we can't set the 
 space between textboxes to 1 pixel automatically (by using arrangement), 
 without changing the whole font-size of the system.

 If there's a user who has problems with his eyes and set the system font 
 higher, the space between textboxes (and other controls) will get really big, 
 so some formulars are no longer displayable on his screen. There would a big 
 space loss.



 2. If we set the space between textboxes by code to 1 pixel and set the 
 border property to none, it looks like the space between the textboxes iss et 
 to 7 pixel. This is because the border in gambas3 just turns to transparent. 
 This issue doesn't exist in gambas1 and gambas2. Here the textboxes resize 
 to fit to the border, when the border is set to none. Here we have to rewrite 
 each arrangement function to manage this.



 Do you see any chance to change these things?

 Regards

 Andreas


1) Spacing and Margin are Desktop.Scale pixels, unless you specify that 
number of pixels in the Padding property. So set Padding to 1.

When you have such problems with the changes in these properties, it 
usually means that your forms are too complex.

2) I don't understand what you are talking about at all. Send a 
screenshot, give information about your system, and check that it does 
not depend on your widget theme.

Regards,

-- 
Benoît Minisini

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
attachment: arrangement_gb3.pngattachment: arrangement_gb2.png--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-01-27 Thread Benoît Minisini
Le 27/01/2012 11:36, Andreas Fröhlke a écrit :
 Hi again,

 thanks for the solution for question 1. I think i don't understood how the 
 parameters padding, margin and spacing work in gambas3. Now i understood and 
 it's fine :)

 2. I've made a 2 screenshots of the same program in gambas3 and gambas2, so i 
 hope you see what i mean.

 Regards

 Andreas


I need your project!

-- 
Benoît Minisini

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2012-01-25 Thread Andreas Fröhlke
Hi Benoît,

 

we're using gambas about 6 years. Now we take a look at gambas3 and have two 
questions:

 

1. Why did you make the spacing property of a container to a boolean, instead 
of leaving it as an integer? It's really frustrating, that we can't set the 
space between textboxes to 1 pixel automatically (by using arrangement), 
without changing the whole font-size of the system.

If there's a user who has problems with his eyes and set the system font 
higher, the space between textboxes (and other controls) will get really big, 
so some formulars are no longer displayable on his screen. There would a big 
space loss.

 

2. If we set the space between textboxes by code to 1 pixel and set the border 
property to none, it looks like the space between the textboxes iss et to 7 
pixel. This is because the border in gambas3 just turns to transparent. This 
issue doesn't exist in gambas1 and gambas2. Here the textboxes resize to fit 
to the border, when the border is set to none. Here we have to rewrite each 
arrangement function to manage this.

 

Do you see any chance to change these things?

Regards

Andreas

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2012-01-25 Thread Benoît Minisini
Le 25/01/2012 16:08, Andreas Fröhlke a écrit :
 Hi Benoît,



 we're using gambas about 6 years. Now we take a look at gambas3 and have two 
 questions:



 1. Why did you make the spacing property of a container to a boolean, instead 
 of leaving it as an integer? It's really frustrating, that we can't set the 
 space between textboxes to 1 pixel automatically (by using arrangement), 
 without changing the whole font-size of the system.

 If there's a user who has problems with his eyes and set the system font 
 higher, the space between textboxes (and other controls) will get really big, 
 so some formulars are no longer displayable on his screen. There would a big 
 space loss.



 2. If we set the space between textboxes by code to 1 pixel and set the 
 border property to none, it looks like the space between the textboxes iss et 
 to 7 pixel. This is because the border in gambas3 just turns to transparent. 
 This issue doesn't exist in gambas1 and gambas2. Here the textboxes resize 
 to fit to the border, when the border is set to none. Here we have to rewrite 
 each arrangement function to manage this.



 Do you see any chance to change these things?

 Regards

 Andreas


1) Spacing and Margin are Desktop.Scale pixels, unless you specify that 
number of pixels in the Padding property. So set Padding to 1.

When you have such problems with the changes in these properties, it 
usually means that your forms are too complex.

2) I don't understand what you are talking about at all. Send a 
screenshot, give information about your system, and check that it does 
not depend on your widget theme.

Regards,

-- 
Benoît Minisini

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2011-12-20 Thread JOHN FERREIRA
Please remove my email address, I no longer wish to receive gambas updates.
Thanx
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2011-11-26 Thread Leo Sendra
.. http://www.supersaw.us/winterpharm.html?lelinkFriend=9xaf2

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2011-11-24 Thread Ext4

 gambas report work fine too ..; i need really to make some doc :/
 --
 Fabien Bodard

Yes Fabien, documentation is missing for Gb.report. It's too hard for me to use 
it :(

What is it you are trying to print?

LaTex is really good

 Richard

I learned Latex at university 10 years ago :) It's true that I thought no more.
Latex should be a good track.

Thank you 

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2011-11-14 Thread Leo Sendra
hello! http://ygusin.by.ru/abulaharx.html?ocgmailID=32wi6

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2011-11-13 Thread Leo Sendra
. http://pospechova.ic.cz/abulaharx.html?uID=9ak1

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2011-08-28 Thread Christian DaGeek247 Stephens
-- 
If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report :-)

   DaGeek247 of http://dageek247.tk/

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2011-03-29 Thread Leo Sendra
http://lbuchta.com/drugstore.html

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2011-03-06 Thread Leo Sendra
http://74.52.152.213/FAT.html

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2011-03-03 Thread Rolf-Werner Eilert
Am 03.03.2011 10:33, schrieb vikram:
 Hi,

 An application I am working on allows users to select .sql dump files and the 
 source them into MySQL. I am storing the paths of .sql files obtained via 
 Dialog.OpenFile() in a array and then iterating through the array with the 
 following command(via SHELL) to source the .sql database dumps.

 mysql -uroot -padmin -e \source   Globals.DBsqlFilePathArray[counter]  
 \

 Trouble is the application becomes unresponsive when large files are used. So 
 I display a Message dialog informing the user that the operation will take 
 some time and then follow a previous thread 
 (http://www.mail-archive.com/gambas-user@lists.sourceforge.net/msg11153.html) 
 to display the busy cursor. But the busy cursor is not displayed when the 
 user moves the mouse over the Message dialog. It still feels like the 
 application has frozen.

 I feel displaying a progressbar would be better, but I am not able to figure 
 out how I can get the progress bar to work with the source operation in the 
 background. I did check out the progressbar sample 
 here(http://gambaslinux.eg2.fr/articles.php?lng=enpg=126), but thats not 
 exactly what i am trying to make. Even a dummy progress bar whose value keeps 
 cycling between 0 and 1 would do.

 Are there any tutorials or examples related to using progress bars in gambas?

 Thanks in advance,
 Best Regards,
 Vikram Nair


Is there a way you can prepare the display before you call mysql? I had 
the same trouble with a printer function (not external one, but seems to 
be the same problem). My solution was to call the display things that 
say please wait and then refresh and WAIT so the display has a chance 
to build up before I dive into the printing part.

However, during printing I did not find a functioning way of reading the 
mouse enabling the user to actually click on Abort to stop the 
process. I tried everything, but the function will only react when work 
is done, so aside from its displaying use, the Abort thing has remained 
useless. What I did achieve is that it displays the pages or names 
printed during printing - the display refreshing part is running.

Regards

Rolf

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2010-03-20 Thread Henri Girard

Hi,
If David Villalobos Cambronero reads this message :
I am translating mysql-gui that you are developing... Can you contact me on 
this email as I can't connect on google mail.
kind regards
Henri
  
_
Consultez gratuitement vos emails Orange, Gmail, Free, ... directement dans 
HOTMAIL !
http://www.windowslive.fr/hotmail/agregation/
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2009-08-15 Thread Виталий
Est li sredi chitaushih russkoyazichniye?

Pishite mne
 vitaf{cat)rbcmail(point]ru
Vitaliy

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2009-05-19 Thread programacion

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-02 Thread Emil Tchekov
I am not so fluent in Gambas, but have made many char converters in the
past...

Instead of using IFs it is better to work with char codes (ASCII, UTFxx).

Create Array with suitable char width (8, 16, 32 Byte) and fill in with what
you need.

As example: on InChar A should be shown sth. other. put in your array's
65-th element what you wish to have as answer.

Than the whole code reduces to:

sRetChar=YOURARRAY(ASC(sInChar))

It is much faster than multiple IFs

kind regards

Emil





-Ursprungliche Nachricht-
Von: ad...@micro-source.ch [mailto:ad...@micro-source.ch]
Gesendet: Donnerstag, 2. April 2009 01:01
An: gambas-user@lists.sourceforge.net
Betreff: Re: [Gambas-user] (no subject)


First you set the Return String to the Input value and none of the If's
is proceed. So, what goes In is coming Out.

Regards, Werner

FUNCTION Gronverter(sInChar AS String) AS String
DIM sRetChar AS String = sInChar

IF sInChar = ? THEN sRetChar = a
IF sInChar = ? THEN sRetChar = v
IF sInChar = ? THEN sRetChar = g
IF sInChar = ? THEN sRetChar = d
IF sInChar = ? THEN sRetChar = e
IF sInChar = ? THEN sRetChar = z
IF sInChar = ? THEN sRetChar = ?
IF sInChar = ? THEN sRetChar = th
IF sInChar = ? THEN sRetChar = i
IF sInChar = ? THEN sRetChar = k
IF sInChar = ? THEN sRetChar = l
IF sInChar = ? THEN sRetChar = m
IF sInChar = ? THEN sRetChar = n
IF sInChar = ? THEN sRetChar = x
IF sInChar = ? THEN sRetChar = o
IF sInChar = ? THEN sRetChar = p
IF sInChar = ? THEN sRetChar = r
IF sInChar = ? THEN sRetChar = s
IF sInChar = ? THEN sRetChar = t
IF sInChar = ? THEN sRetChar = i
IF sInChar = ? THEN sRetChar = f
IF sInChar = ? THEN sRetChar = h
IF sInChar = ? THEN sRetChar = ps
IF sInChar = ? THEN sRetChar = o
RETURN sRetChar

END





--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-02 Thread Dimitris Anogiatis
For the trailing S problem since the nouns with male gender and our verbs
always end in ς you can either do an rInstr
(reverse Instr) or you can use right$ to get the trailing character of your
word and check if it is a trailing s or not.

as for the difthongs you can always do an instr(tmpString, ου) to see
whether there exists one set of difthongs or not
within the given string and just replace all of its occurrences with u.

OR you could use replace(tmpString,ου,u) to replace every difthong you
find in the whole string.


gambasdoc link for rinstr
http://www.gambasdoc.org/help/lang/rinstr

gambasdoc link for rinstr
http://www.gambasdoc.org/help/lang/replace


I hope this helps.

Since I do speak Greek if you want, send me an email directly so I can get a
better idea of what you're trying
to accomplish here.

Regards
Dimitris

2009/4/1 Doriano Blengino doriano.bleng...@fastwebnet.it

 vlahonick vlahonick ha scritto:
  thanks to all of you (special thanks to dominique tha solved the previous
 problem) the project going on :D
  but now another problem appears...
  THE DIFTHONGS and the finishing greek sigma...
  the code below is about the sigma but in greek is one more ς tha goes
 only if a word ENDS with SIGMA (Σ/σ/ς)
 
  IF sInChar = σ THEN sRetChar = s
 
  so how i can write tha if the last letter in the textbox1.text is s
 that textbox2.text have to write ς  ???
 
  this is the first problem of the part...
 
  and now how i can write that if in the textbox1.text the user writes ου
 it should appear u 
  because is different if the tou letters ο and υ are the one after
 other and other if they dont.
  example : ουγκάντα-ugada , πουλημένος-pulimenos |
 υψηλότατος-ipsolotatos
  so u see tha in ugada and pulimenos example if the two leters (ο,υ) are
 one after other the pronoced like u
  so how i can do that?
  because i already had write :
 
  IF sInChar = υ THEN sRetChar = i
  IF sInChar = ο THEN sRetChar = o
 
  so at this moment the program understand them different
 
  example :
 
  if i wrote ουγκάντα program gives oigada but the correct is UGADA
 
  (ugada is how Uganda(the country) is pronaunced in greek)
 
  so now somehow i have to write that if these two letter are together (one
 after other|ο,υ|) they should give the
  result u.
  of course doesnt matter if a word stars or ends or if these two letters
 are in the middle of the word.
  their result is always u.
 
  ANY HELP???
 
 I am not sure to have got it rightly, but I am sure about this: if you
 can explain something to a person, then you can explain the same thing
 to gambas. You just said that if a O is followed by a U, (sorry for
 using latin letters - you understand), then the output is a single U. So
 write it in gambas: you take an input word, and analyze it letter by
 letter. If a letter is TAU, you output T; if a letter is OMEGA, you:

1) peek at the next letter.
 1a) If it is U, you output U and increment the scanning index
 1b) If it is not U, you output O

2) increment index and loop

 ...and so on.

 Another way, which works if your input text *does not* contain latin
 letters, is to substitute it piece by piece, starting with exceptions
 like diphtongs. Take your Uganda: ουγκάντα. Search for all the
 diphtongs - start with ου: found in position one. Delete two chars,
 and put in place U. Now you have Uγκάντα. Search for other diphtongs
 - none found. Then, search for single letters. α found in position 7;
 delete it and place an A; you get UγκάντA. And so on...

 May be things can get more complicated if you take whole sentences; in
 Italian the correct pronunciation sometimes changes slightly depending
 on the words. For example, to Milan becomes a Milano, and it is
 pronounced normally. But to Rome becomes a Roma, but should be
 pronounced arroma, with a geminated R present only when speaked. I
 suppose Greek has these exceptions too...

 Regards,

 --
 Doriano Blengino

 Listen twice before you speak.
 This is why we have two ears, but only one mouth.



 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-01 Thread Benoît Minisini
 Hi!First of all many thanks to the developer and everybody that helped to
 the creation and the now shape of this programming language... It was
 really was linux missed...
 Anyway...
 I have a problem or bug at programming with gambas...I really searched
 and googled to find out how to solve this one but nothing... Also in this
 e-mail i have a screenhost attached with the error tha appears and the
 source behind... I am quite sure that the problem is not at the code i
 wrote...the problem is that this error writes me that there are too many
 nested control structures. So i guess that the language for some reason
 doesnt support more than a fixed number of line codes or more than a fixed
 number of IF THEN ELSE END IF...
 I really dont no what to do about this...
 Any reply helpful or not will be really appricieted...:D

 Here are information about my pc (maybe is my pc's problem...dunno) :

 * distribution : ubuntu 8.10
 * kernel linux : 2.6.27-7-generic
 * gnome : 2.24.1
 * memory : 2gb
 * processor : amd athlon 64 (3000+)
 * gambas version : 2.7

 thank you in advance
 and if someone wants to send him my program's code to check out glad to do
 that and i am greek so a reply from another greek or in greek will be more
 apprecieted because i will understand the reply even easier :D
 thank you again

 _
 Invite your mail contacts to join your friends list with Windows Live
 Spaces. It's easy!
 http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspx
mkt=en-us

You must put Else If on the same line, otherwise the compiler will open a 
new If ... Then ... Else ... EndIf control structure.

If ... Then
Else If ... Then
Else If ... Then
...
EndIf

Is only one control structure.

If ... Then
Else
If ... Then
Else
If ... Then

Are three control structures.

Regards,


-- 
Benoît

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-01 Thread Doriano Blengino
Charlie Reinl ha scritto:
 Am Dienstag, den 31.03.2009, 22:23 +0200 schrieb Doriano Blengino:
   
 Charlie Reinl ha scritto:
 
 Salut, 

 you have to close 'If Then Else' by an 'Endif'
 Or you could write :

 If TextBox1.Text = T then TextBox2.Text = T
 If TextBox1.Text = Y then TextBox2.Text = I
   
   
 If it is so, then the gambas parser has a problem:

 if textbox1.text=0 then
   ' now a endif is expected...
 else' where does this else bind to?

 ...and the message too many nested control structure is completely 
 misguiding.

 Regards,

 
 Salut,

 you have to close 'If Then Else' by an 'Endif' .. I said!

 if textbox1.text=0 then
   ' do something for 0
 Else if textbox1.text=1 then 
   ' do something for 1
 Else
   ' do something for all others (then 0 and 1)
 End if  ' close your control structure

   
You are right; the final part of that long statement was not visible. 
But I tried to write a statement that long (7211 lines!), and the error 
from the compiler was Endif missing  So it is still a mistery...

Regards,
Doriano


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-01 Thread Benoît Minisini
 Charlie Reinl ha scritto:
  Am Dienstag, den 31.03.2009, 22:23 +0200 schrieb Doriano Blengino:
  Charlie Reinl ha scritto:
  Salut,
 
  you have to close 'If Then Else' by an 'Endif'
  Or you could write :
 
  If TextBox1.Text = T then TextBox2.Text = T
  If TextBox1.Text = Y then TextBox2.Text = I
 
  If it is so, then the gambas parser has a problem:
 
  if textbox1.text=0 then
' now a endif is expected...
  else' where does this else bind to?
 
  ...and the message too many nested control structure is completely
  misguiding.
 
  Regards,
 
  Salut,
 
  you have to close 'If Then Else' by an 'Endif' .. I said!
 
  if textbox1.text=0 then
  ' do something for 0
  Else if textbox1.text=1 then
  ' do something for 1
  Else
  ' do something for all others (then 0 and 1)
  End if  ' close your control structure

 OK, found the problem.
 Writing:

 if test then
 else if test then
 else if test then
 ...

 works. Writing instead:

 if test then
 else
 if test then
 else
 ...

 gives Too many nested control structure, even if the ENDIF clause is
 present. For a few lines of code, it (correctly) says ENDIF missing.
 Note that if you write 3 lines ending with THEN, then 3 ENDIF are
 required, so what you said before is wrong. And our friend is right,
 there is a limit; when the complex statement grows over a certain number
 of lines, the other error appears. I am too lazy to discover how many
 nested ELSEs are legal.

 Regards,
 Doriano



The answer is in the source file 'gb_limit.h' located in the /main/share 
directory.

-- 
Benoît

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2009-04-01 Thread vlahonick vlahonick

Thanks you all for your replies
For those that they propuse me to put end if at the end of the code of course 
i did that
In the screenshot i send you all it was just a part of the code,the theme of 
the screenshot was to show u the error.
If i didnt close the code with as many end if were needed the language itself 
would give me other error that end if are needed.
The code i wrote was completely correct,i double-triple checked it...
In the screenshot i repeat is just a very small part of my code because i want 
u to see the error and not the code...
Anyway i tried to rewrite my code with the Select Case expression but is more 
difficult because there are many cases and ONLY
one have to be triggered per time and which case should be triggered depends 
from what the user will wirte...
I didnt really succeded to do that with the Select Case expression.
So here i give u an example and if someone could help me by writing the same 
example with the select case expression it will be very helpful.

PUBLIC SUB Button1_Click

if textbox1.text = a then
textbox2.text = b
else
if textbox1.text = b then
textbox2.text = g
end if
end if

END

(like the example is my program's code-and the events are triggered when the 
user press the OK button)

ty in advance again...:D

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-01 Thread Charlie Reinl
Am Mittwoch, den 01.04.2009, 17:06 +0300 schrieb vlahonick vlahonick:
 Thanks you all for your replies
 For those that they propuse me to put end if at the end of the code of 
 course i did that
 In the screenshot i send you all it was just a part of the code,the theme of 
 the screenshot was to show u the error.
 If i didnt close the code with as many end if were needed the language itself 
 would give me other error that end if are needed.
 The code i wrote was completely correct,i double-triple checked it...
 In the screenshot i repeat is just a very small part of my code because i 
 want u to see the error and not the code...
 Anyway i tried to rewrite my code with the Select Case expression but is more 
 difficult because there are many cases and ONLY
 one have to be triggered per time and which case should be triggered depends 
 from what the user will wirte...
 I didnt really succeded to do that with the Select Case expression.
 So here i give u an example and if someone could help me by writing the same 
 example with the select case expression it will be very helpful.
 
 PUBLIC SUB Button1_Click
 
 if textbox1.text = a then
 textbox2.text = b
 else
 if textbox1.text = b then
 textbox2.text = g
 end if
 end if
 
 END
 
 (like the example is my program's code-and the events are triggered when the 
 user press the OK button)
 
 ty in advance again...:D

Salut,

first: tell us what version of Gambas you are using.
second: am I right, you are writing a kind of CONVERTER ?

if so this is what I would write quickly.

FUNCTION myConvert(sInChar AS String) AS String
DIM sRetChar AS String = sInChar  ' makes the return value to the given
value
   ' now make you changes
  IF sInChar = a THEN sRetChar = 0
  IF sInChar = b THEN sRetChar = 1
  IF sInChar = c THEN sRetChar = 2
  IF sInChar = d THEN sRetChar = 3
  IF sInChar = e THEN sRetChar = 4
  IF sInChar = f THEN sRetChar = 5
  IF sInChar = g THEN sRetChar = 6
  IF sInChar = h THEN sRetChar = 7
  IF sInChar = i THEN sRetChar = 8
  IF sInChar = j THEN sRetChar = 9
  IF sInChar = 0 THEN sRetChar = a
  IF sInChar = 1 THEN sRetChar = b
  IF sInChar = 2 THEN sRetChar = c
  IF sInChar = 3 THEN sRetChar = d
  IF sInChar = 4 THEN sRetChar = e
  IF sInChar = 5 THEN sRetChar = f
  IF sInChar = 6 THEN sRetChar = g
  IF sInChar = 7 THEN sRetChar = h
  IF sInChar = 8 THEN sRetChar = i
  IF sInChar = 9 THEN sRetChar = j
  RETURN sRetChar
END

I attached you a test.

-- 
Amicalment
Charlie


TEST-0.0.1.tar.gz
Description: application/compressed-tar
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-01 Thread Charlie Reinl
Am Mittwoch, den 01.04.2009, 18:55 +0300 schrieb vlahonick vlahonick:
 
 
  From: karl.re...@fen-net.de
  To: gambas-user@lists.sourceforge.net
  Date: Wed, 1 Apr 2009 17:16:38 +0200
  Subject: Re: [Gambas-user] (no subject)
  
  Am Mittwoch, den 01.04.2009, 17:06 +0300 schrieb vlahonick vlahonick:
   Thanks you all for your replies
   For those that they propuse me to put end if at the end of the code of 
   course i did that
   In the screenshot i send you all it was just a part of the code,the theme 
   of the screenshot was to show u the error.
   If i didnt close the code with as many end if were needed the language 
   itself would give me other error that end if are needed.
   The code i wrote was completely correct,i double-triple checked it...
   In the screenshot i repeat is just a very small part of my code because i 
   want u to see the error and not the code...
   Anyway i tried to rewrite my code with the Select Case expression but is 
   more difficult because there are many cases and ONLY
   one have to be triggered per time and which case should be triggered 
   depends from what the user will wirte...
   I didnt really succeded to do that with the Select Case expression.
   So here i give u an example and if someone could help me by writing the 
   same example with the select case expression it will be very helpful.
   
   PUBLIC SUB Button1_Click
   
   if textbox1.text = a then
   textbox2.text = b
   else
   if textbox1.text = b then
   textbox2.text = g
   end if
   end if
   
   END
   
   (like the example is my program's code-and the events are triggered when 
   the user press the OK button)
   
   ty in advance again...:D
  
  Salut,
  
  first: tell us what version of Gambas you are using.
  second: am I right, you are writing a kind of CONVERTER ?
  
  if so this is what I would write quickly.
  
  FUNCTION myConvert(sInChar AS String) AS String
  DIM sRetChar AS String = sInChar  ' makes the return value to the given
  value
 ' now make you changes
IF sInChar = a THEN sRetChar = 0
IF sInChar = b THEN sRetChar = 1
IF sInChar = c THEN sRetChar = 2
IF sInChar = d THEN sRetChar = 3
IF sInChar = e THEN sRetChar = 4
IF sInChar = f THEN sRetChar = 5
IF sInChar = g THEN sRetChar = 6
IF sInChar = h THEN sRetChar = 7
IF sInChar = i THEN sRetChar = 8
IF sInChar = j THEN sRetChar = 9
IF sInChar = 0 THEN sRetChar = a
IF sInChar = 1 THEN sRetChar = b
IF sInChar = 2 THEN sRetChar = c
IF sInChar = 3 THEN sRetChar = d
IF sInChar = 4 THEN sRetChar = e
IF sInChar = 5 THEN sRetChar = f
IF sInChar = 6 THEN sRetChar = g
IF sInChar = 7 THEN sRetChar = h
IF sInChar = 8 THEN sRetChar = i
IF sInChar = 9 THEN sRetChar = j
RETURN sRetChar
  END
  
  I attached you a test.
  
  -- 
  Amicalment
  Charlie
 
 
 I tried your test and it was really what i need :D
 Faster in code with less writing and more simple :D
 But when i try to modify it and put instead of number greek latters and then 
 i run the program
 the result in text box 2 is some boxes like |X|...so this means that for some 
 reason the program doesnt respawn in greek or doesnt understand them?
 How i can modify the code?
 
 ty a lot

Salut,

seams to be a UTF problem.

make a NEW project, with one form, 2 NEW textboxs and a NEW button, then
copy all the code from the .class from the Test-project to your
new .class

May be that helps.

PS: I call that an converter.
-- 
Amicalment
Charlie


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-01 Thread Doriano Blengino
Charlie Reinl ha scritto:

 first: tell us what version of Gambas you are using.
 second: am I right, you are writing a kind of CONVERTER ?
 
 if so this is what I would write quickly.

 FUNCTION myConvert(sInChar AS String) AS String
 DIM sRetChar AS String = sInChar  ' makes the return value to the given
 value
' now make you changes
   IF sInChar = a THEN sRetChar = 0
   IF sInChar = b THEN sRetChar = 1
   IF sInChar = c THEN sRetChar = 2
   IF sInChar = d THEN sRetChar = 3
   IF sInChar = e THEN sRetChar = 4
   IF sInChar = f THEN sRetChar = 5
   IF sInChar = g THEN sRetChar = 6
   IF sInChar = h THEN sRetChar = 7
   IF sInChar = i THEN sRetChar = 8
   IF sInChar = j THEN sRetChar = 9
   IF sInChar = 0 THEN sRetChar = a
   IF sInChar = 1 THEN sRetChar = b
   IF sInChar = 2 THEN sRetChar = c
   IF sInChar = 3 THEN sRetChar = d
   IF sInChar = 4 THEN sRetChar = e
   IF sInChar = 5 THEN sRetChar = f
   IF sInChar = 6 THEN sRetChar = g
   IF sInChar = 7 THEN sRetChar = h
   IF sInChar = 8 THEN sRetChar = i
   IF sInChar = 9 THEN sRetChar = j
   RETURN sRetChar
 END
   
One could also write a single long string, with couples of chars. 
Borrowing from the code above:

sConvert = ?a0b1c2   d3e4f5g6   h7.

note the spaces in the middle. A routine then can do:

pos=instr(sConvert, sInChar)
return mid(sConvert, pos+1,1)   ' if pos=0, then the first character 
is returned...

This is faster to write... and perhaps easier to read/mantain. Of 
course, it works only for single characters; but variations on this 
theme could let it work for other kind of translations.

Regards,
Doriano


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-01 Thread vlahonick vlahonick



 From: karl.re...@fen-net.de
 To: gambas-user@lists.sourceforge.net
 Date: Wed, 1 Apr 2009 18:14:32 +0200
 Subject: Re: [Gambas-user] (no subject)
 
 Am Mittwoch, den 01.04.2009, 18:55 +0300 schrieb vlahonick vlahonick:
  
  
   From: karl.re...@fen-net.de
   To: gambas-user@lists.sourceforge.net
   Date: Wed, 1 Apr 2009 17:16:38 +0200
   Subject: Re: [Gambas-user] (no subject)
   
   Am Mittwoch, den 01.04.2009, 17:06 +0300 schrieb vlahonick vlahonick:
Thanks you all for your replies
For those that they propuse me to put end if at the end of the code 
of course i did that
In the screenshot i send you all it was just a part of the code,the 
theme of the screenshot was to show u the error.
If i didnt close the code with as many end if were needed the language 
itself would give me other error that end if are needed.
The code i wrote was completely correct,i double-triple checked it...
In the screenshot i repeat is just a very small part of my code because 
i want u to see the error and not the code...
Anyway i tried to rewrite my code with the Select Case expression but 
is more difficult because there are many cases and ONLY
one have to be triggered per time and which case should be triggered 
depends from what the user will wirte...
I didnt really succeded to do that with the Select Case expression.
So here i give u an example and if someone could help me by writing the 
same example with the select case expression it will be very helpful.

PUBLIC SUB Button1_Click

if textbox1.text = a then
textbox2.text = b
else
if textbox1.text = b then
textbox2.text = g
end if
end if

END

(like the example is my program's code-and the events are triggered 
when the user press the OK button)

ty in advance again...:D
   
   Salut,
   
   first: tell us what version of Gambas you are using.
   second: am I right, you are writing a kind of CONVERTER ?
 
   if so this is what I would write quickly.
   
   FUNCTION myConvert(sInChar AS String) AS String
   DIM sRetChar AS String = sInChar  ' makes the return value to the given
   value
  ' now make you changes
 IF sInChar = a THEN sRetChar = 0
 IF sInChar = b THEN sRetChar = 1
 IF sInChar = c THEN sRetChar = 2
 IF sInChar = d THEN sRetChar = 3
 IF sInChar = e THEN sRetChar = 4
 IF sInChar = f THEN sRetChar = 5
 IF sInChar = g THEN sRetChar = 6
 IF sInChar = h THEN sRetChar = 7
 IF sInChar = i THEN sRetChar = 8
 IF sInChar = j THEN sRetChar = 9
 IF sInChar = 0 THEN sRetChar = a
 IF sInChar = 1 THEN sRetChar = b
 IF sInChar = 2 THEN sRetChar = c
 IF sInChar = 3 THEN sRetChar = d
 IF sInChar = 4 THEN sRetChar = e
 IF sInChar = 5 THEN sRetChar = f
 IF sInChar = 6 THEN sRetChar = g
 IF sInChar = 7 THEN sRetChar = h
 IF sInChar = 8 THEN sRetChar = i
 IF sInChar = 9 THEN sRetChar = j
 RETURN sRetChar
   END
   
   I attached you a test.
   
   -- 
   Amicalment
   Charlie
  
  
  I tried your test and it was really what i need :D
  Faster in code with less writing and more simple :D
  But when i try to modify it and put instead of number greek latters and 
  then i run the program
  the result in text box 2 is some boxes like |X|...so this means that for 
  some reason the program doesnt respawn in greek or doesnt understand them?
  How i can modify the code?
  
  ty a lot
 
 Salut,
 
 seams to be a UTF problem.
 
 make a NEW project, with one form, 2 NEW textboxs and a NEW button, then
 copy all the code from the .class from the Test-project to your
 new .class
 
 May be that helps.
 
 PS: I call that an converter.
 -- 
 Amicalment
 Charlie
 
ty one more time for ur replies but still got problems...
i tried to follow ur instructions but failed again by the result...
i prefer the whole thing to be triggered when u press the ok button so i didnt 
put the code in the textbox1.text but at the button (doesnt mmater just told u)
here is the code i wrote quickly...to try it..


PUBLIC SUB Button1_Click()
DIM nI AS Integer
DIM sAnyChar AS String
TextBox2.text = 
   FOR nI = 1 TO Len(TextBox1.Text)
  sAnyChar = Mid(TextBox1.Text, nI, 1)
  TextBox2.Text = TextBox2.Text  Gronverter(sAnyChar)
   NEXT 
END

FUNCTION Gronverter(sInChar AS String) AS String
DIM sRetChar AS String = sInChar

IF sInChar = α THEN sRetChar = a
IF sInChar = β THEN sRetChar = v
IF sInChar = γ THEN sRetChar = g
IF sInChar = δ THEN sRetChar = d
IF sInChar = ε THEN sRetChar = e
IF sInChar = ζ THEN sRetChar = z
IF sInChar = η THEN sRetChar = ι
IF sInChar = θ THEN sRetChar = th
IF sInChar = ι THEN sRetChar = i
IF sInChar = κ THEN sRetChar = k
IF sInChar = λ THEN sRetChar = l
IF sInChar = μ THEN sRetChar = m
IF sInChar = ν THEN sRetChar = n
IF sInChar = ξ THEN sRetChar = x
IF sInChar = ο THEN sRetChar = o
IF sInChar = π THEN sRetChar = p
IF sInChar = ρ THEN sRetChar = r

Re: [Gambas-user] (no subject)

2009-04-01 Thread ad...@micro-source.ch
First you set the Return String to the Input value and none of the If's 
is proceed. So, what goes In is coming Out.

Regards, Werner

FUNCTION Gronverter(sInChar AS String) AS String
DIM sRetChar AS String = sInChar

IF sInChar = ? THEN sRetChar = a
IF sInChar = ? THEN sRetChar = v
IF sInChar = ? THEN sRetChar = g
IF sInChar = ? THEN sRetChar = d
IF sInChar = ? THEN sRetChar = e
IF sInChar = ? THEN sRetChar = z
IF sInChar = ? THEN sRetChar = ?
IF sInChar = ? THEN sRetChar = th
IF sInChar = ? THEN sRetChar = i
IF sInChar = ? THEN sRetChar = k
IF sInChar = ? THEN sRetChar = l
IF sInChar = ? THEN sRetChar = m
IF sInChar = ? THEN sRetChar = n
IF sInChar = ? THEN sRetChar = x
IF sInChar = ? THEN sRetChar = o
IF sInChar = ? THEN sRetChar = p
IF sInChar = ? THEN sRetChar = r
IF sInChar = ? THEN sRetChar = s
IF sInChar = ? THEN sRetChar = t
IF sInChar = ? THEN sRetChar = i
IF sInChar = ? THEN sRetChar = f
IF sInChar = ? THEN sRetChar = h
IF sInChar = ? THEN sRetChar = ps
IF sInChar = ? THEN sRetChar = o
RETURN sRetChar

END




--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] (no subject)

2009-04-01 Thread vlahonick vlahonick

thanks to all of you (special thanks to dominique tha solved the previous 
problem) the project going on :D
but now another problem appears...
THE DIFTHONGS and the finishing greek sigma...
the code below is about the sigma but in greek is one more ς tha goes only if 
a word ENDS with SIGMA (Σ/σ/ς)
 
IF sInChar = σ THEN sRetChar = s

so how i can write tha if the last letter in the textbox1.text is s that 
textbox2.text have to write ς  ???

this is the first problem of the part...

and now how i can write that if in the textbox1.text the user writes ου it 
should appear u 
because is different if the tou letters ο and υ are the one after other and 
other if they dont.
example : ουγκάντα-ugada , πουλημένος-pulimenos | υψηλότατος-ipsolotatos
so u see tha in ugada and pulimenos example if the two leters (ο,υ) are one 
after other the pronoced like u
so how i can do that?
because i already had write :

IF sInChar = υ THEN sRetChar = i
IF sInChar = ο THEN sRetChar = o

so at this moment the program understand them different

example :

if i wrote ουγκάντα program gives oigada but the correct is UGADA

(ugada is how Uganda(the country) is pronaunced in greek)

so now somehow i have to write that if these two letter are together (one after 
other|ο,υ|) they should give the
result u.
of course doesnt matter if a word stars or ends or if these two letters are in 
the middle of the word.
their result is always u.

ANY HELP???

ty in advance...

VLAHONICK (www.vlahonick.freehost.gr) :D

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-04-01 Thread Doriano Blengino
vlahonick vlahonick ha scritto:
 thanks to all of you (special thanks to dominique tha solved the previous 
 problem) the project going on :D
 but now another problem appears...
 THE DIFTHONGS and the finishing greek sigma...
 the code below is about the sigma but in greek is one more ς tha goes only 
 if a word ENDS with SIGMA (Σ/σ/ς)
  
 IF sInChar = σ THEN sRetChar = s

 so how i can write tha if the last letter in the textbox1.text is s that 
 textbox2.text have to write ς  ???

 this is the first problem of the part...

 and now how i can write that if in the textbox1.text the user writes ου it 
 should appear u 
 because is different if the tou letters ο and υ are the one after other 
 and other if they dont.
 example : ουγκάντα-ugada , πουλημένος-pulimenos | υψηλότατος-ipsolotatos
 so u see tha in ugada and pulimenos example if the two leters (ο,υ) are one 
 after other the pronoced like u
 so how i can do that?
 because i already had write :

 IF sInChar = υ THEN sRetChar = i
 IF sInChar = ο THEN sRetChar = o

 so at this moment the program understand them different

 example :

 if i wrote ουγκάντα program gives oigada but the correct is UGADA

 (ugada is how Uganda(the country) is pronaunced in greek)

 so now somehow i have to write that if these two letter are together (one 
 after other|ο,υ|) they should give the
 result u.
 of course doesnt matter if a word stars or ends or if these two letters are 
 in the middle of the word.
 their result is always u.

 ANY HELP???
   
I am not sure to have got it rightly, but I am sure about this: if you 
can explain something to a person, then you can explain the same thing 
to gambas. You just said that if a O is followed by a U, (sorry for 
using latin letters - you understand), then the output is a single U. So 
write it in gambas: you take an input word, and analyze it letter by 
letter. If a letter is TAU, you output T; if a letter is OMEGA, you:

1) peek at the next letter.
 1a) If it is U, you output U and increment the scanning index
 1b) If it is not U, you output O

2) increment index and loop

...and so on.

Another way, which works if your input text *does not* contain latin 
letters, is to substitute it piece by piece, starting with exceptions 
like diphtongs. Take your Uganda: ουγκάντα. Search for all the 
diphtongs - start with ου: found in position one. Delete two chars, 
and put in place U. Now you have Uγκάντα. Search for other diphtongs 
- none found. Then, search for single letters. α found in position 7; 
delete it and place an A; you get UγκάντA. And so on...

May be things can get more complicated if you take whole sentences; in 
Italian the correct pronunciation sometimes changes slightly depending 
on the words. For example, to Milan becomes a Milano, and it is 
pronounced normally. But to Rome becomes a Roma, but should be 
pronounced arroma, with a geminated R present only when speaked. I 
suppose Greek has these exceptions too...

Regards,

-- 
Doriano Blengino

Listen twice before you speak.
This is why we have two ears, but only one mouth.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-03-31 Thread Jussi Lahtinen
I can't say anything about error message, where is the limit etc.
BUT I highly recommend that you use select case instead of if then else!
I think you don't run into problems with select case, and also it is
easier way...


Jussi


2009/3/31 lol lolovic tsopanotr...@hotmail.com:

 Hi!First of all many thanks to the developer and everybody that helped to the 
 creation and the now shape of this programming language...
 It was really was linux missed...
 Anyway...
 I have a problem or bug at programming with gambas...I really searched and 
 googled to find out how to solve this one but nothing...
 Also in this e-mail i have a screenhost attached with the error tha appears 
 and the source behind...
 I am quite sure that the problem is not at the code i wrote...the problem is 
 that this error writes me that there are too many nested control structures.
 So i guess that the language for some reason doesnt support more than a fixed 
 number of line codes or more than a fixed number of
 IF THEN ELSE END IF...
 I really dont no what to do about this...
 Any reply helpful or not will be really appricieted...:D

 Here are information about my pc (maybe is my pc's problem...dunno) :

 * distribution : ubuntu 8.10
 * kernel linux : 2.6.27-7-generic
 * gnome : 2.24.1
 * memory : 2gb
 * processor : amd athlon 64 (3000+)
 * gambas version : 2.7

 thank you in advance
 and if someone wants to send him my program's code to check out glad to do 
 that
 and i am greek so a reply from another greek or in greek will be more 
 apprecieted
 because i will understand the reply even easier :D
 thank you again

 _
 Invite your mail contacts to join your friends list with Windows Live Spaces. 
 It's easy!
 http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
 --

 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-03-31 Thread Werner
lol lolovic wrote:
 Hi!First of all many thanks to the developer and everybody that helped to the 
 creation and the now shape of this programming language...
 It was really was linux missed...
 Anyway...
 I have a problem or bug at programming with gambas...I really searched and 
 googled to find out how to solve this one but nothing...
 Also in this e-mail i have a screenhost attached with the error tha appears 
 and the source behind...
 I am quite sure that the problem is not at the code i wrote...the problem is 
 that this error writes me that there are too many nested control structures.
 So i guess that the language for some reason doesnt support more than a fixed 
 number of line codes or more than a fixed number of
 IF THEN ELSE END IF...
 I really dont no what to do about this...
 Any reply helpful or not will be really appricieted...:D

 Here are information about my pc (maybe is my pc's problem...dunno) :

 * distribution : ubuntu 8.10
 * kernel linux : 2.6.27-7-generic
 * gnome : 2.24.1
 * memory : 2gb
 * processor : amd athlon 64 (3000+)
 * gambas version : 2.7

 thank you in advance
 and if someone wants to send him my program's code to check out glad to do 
 that
 and i am greek so a reply from another greek or in greek will be more 
 apprecieted
 because i will understand the reply even easier :D
 thank you again

 _
 Invite your mail contacts to join your friends list with Windows Live Spaces. 
 It's easy!
 http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us

 

 
This might be implemented more suitably as a Select statement
http://gambasdoc.org/help/lang/select

SELECT TextBox1.Text

CASE Y
   TextBox2.Text=I
   |
   |
   and so on
   |
DEFAULT
   TextBox2.Text=TextBox1.Text

END SELECT


Best Regards
Werner

   


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-03-31 Thread Charlie Reinl
Salut, 

you have to close 'If Then Else' by an 'Endif'
Or you could write :

If TextBox1.Text = T then TextBox2.Text = T
If TextBox1.Text = Y then TextBox2.Text = I
. and so on

or Select Case

or 

If TextBox1.Text = T then 
TextBox2.Text = T
Else If TextBox1.Text = Y then 
TextBox2.Text = I

..

Endif 

-- 
Amicalment
Charlie
 
 

Am Dienstag, den 31.03.2009, 19:46 +0300 schrieb Jussi Lahtinen:
 I can't say anything about error message, where is the limit etc.
 BUT I highly recommend that you use select case instead of if then else!
 I think you don't run into problems with select case, and also it is
 easier way...
 
 
 Jussi
 
 
 2009/3/31 lol lolovic tsopanotr...@hotmail.com:
 
  Hi!First of all many thanks to the developer and everybody that helped to 
  the creation and the now shape of this programming language...
  It was really was linux missed...
  Anyway...
  I have a problem or bug at programming with gambas...I really searched 
  and googled to find out how to solve this one but nothing...
  Also in this e-mail i have a screenhost attached with the error tha 
  appears and the source behind...
  I am quite sure that the problem is not at the code i wrote...the problem 
  is that this error writes me that there are too many nested control 
  structures.
  So i guess that the language for some reason doesnt support more than a 
  fixed number of line codes or more than a fixed number of
  IF THEN ELSE END IF...
  I really dont no what to do about this...
  Any reply helpful or not will be really appricieted...:D
 
  Here are information about my pc (maybe is my pc's problem...dunno) :
 
  * distribution : ubuntu 8.10
  * kernel linux : 2.6.27-7-generic
  * gnome : 2.24.1
  * memory : 2gb
  * processor : amd athlon 64 (3000+)
  * gambas version : 2.7
 
  thank you in advance
  and if someone wants to send him my program's code to check out glad to do 
  that
  and i am greek so a reply from another greek or in greek will be more 
  apprecieted
  because i will understand the reply even easier :D
  thank you again
 
  _
  Invite your mail contacts to join your friends list with Windows Live 
  Spaces. It's easy!
  http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
  --
 
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] (no subject)

2009-03-31 Thread Charlie Reinl
Am Dienstag, den 31.03.2009, 22:23 +0200 schrieb Doriano Blengino:
 Charlie Reinl ha scritto:
  Salut, 
 
  you have to close 'If Then Else' by an 'Endif'
  Or you could write :
 
  If TextBox1.Text = T then TextBox2.Text = T
  If TextBox1.Text = Y then TextBox2.Text = I

 If it is so, then the gambas parser has a problem:
 
 if textbox1.text=0 then
   ' now a endif is expected...
 else' where does this else bind to?
 
 ...and the message too many nested control structure is completely 
 misguiding.
 
 Regards,
 
Salut,

you have to close 'If Then Else' by an 'Endif' .. I said!

if textbox1.text=0 then
' do something for 0
Else if textbox1.text=1 then 
' do something for 1
Else
' do something for all others (then 0 and 1)
End if  ' close your control structure

-- 
Amicalment
Charlie


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user