Re: [Gambas-user] Gambas-user Digest, Vol 132, Issue 29

2017-05-23 Thread Dimitris Anogiatis
Does the same behavior occur with a wired keyboard (not your wireless
Logitech K330)?

On Tue, May 16, 2017 at 3:48 AM, Glaucio Araujo  wrote:

> Hi, Jussi
>
>
> My Xorg.0.log is in ~/.local/share/xorg/
>
> Log attached.
>
> My Xinput:
>
>
> gda@acer:~$ xinput list
> ⎡ Virtual core pointerid=2[master pointer  (3)]
> ⎜   ↳ Virtual core XTEST pointer  id=4[slave  pointer
> (2)]
> ⎜   ↳ Logitech M215 2nd Gen   id=11[slave  pointer
> (2)]
> ⎜   ↳ Logitech K330   id=10[slave  pointer
> (2)]
> ⎜   ↳ ETPS/2 Elantech Touchpadid=13[slave  pointer
> (2)]
> ⎣ Virtual core keyboard   id=3[master keyboard (2)]
> ↳ Virtual core XTEST keyboard id=5[slave  keyboard
> (3)]
> ↳ Power Buttonid=6[slave  keyboard
> (3)]
> ↳ Video Bus   id=7[slave  keyboard
> (3)]
> ↳ Power Buttonid=8[slave  keyboard
> (3)]
> ↳ Sleep Buttonid=9[slave  keyboard
> (3)]
> ↳ AT Translated Set 2 keyboardid=12[slave  keyboard
> (3)]
> ↳ Acer WMI hotkeysid=14[slave  keyboard
> (3)]
> ↳ Logitech K330   id=15[slave  keyboard
> (3)]
> ↳ HD WebCam   id=16[slave  keyboard
> (3)]
>
>
>
>
>
>
> ---
>
> Gláucio de Araujo
>
> Mail : glaucio.de.ara...@gmail.com
> TIM  : (11) 95900-7801 (WhatsApp / Telegram)
>
>
> Date: Mon, 15 May 2017 23:54:16 +0300
> > From: Jussi Lahtinen 
> > Subject: Re: [Gambas-user] Keyboard locked -- insisting one more time
> > To: ferna...@fcabral.com.br,mailing list for gambas users
> > 
> > Message-ID:
> > 

Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-23 Thread Dimitris Anogiatis
Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed
workaround but not the recommended one. I would go with what Cris suggested.
I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a
normal user I've never had problems with the keyboard locking.

Is there something that might be misconfigured on your VM perhaps (I mean
on the Virtualbox settings)?

On Mon, May 15, 2017 at 9:20 AM, Cristiano Guadagnino 
wrote:

> Fernando, did you try setting up a new user on your system and trying to
> run gambas as the new user?
>
> Cris
>
>
>
>   
>
> Sent with Mailtrack
>  referral=crigu...@gmail.com=22>
>
>
> On Mon, May 15, 2017 at 12:53 PM, Fernando Cabral <
> fernandojosecab...@gmail.com> wrote:
>
> > Gláucio
> >
> > I see our systems and environment are quite similar, although not exactly
> > the same. Have you installed something different that might have changed
> > the IDE behavior? If I have, I have not been able to determine what it
> > could be. What I know for sure is that one moment everything was working,
> > next moment it was not anymore. What happened in-between, I can not
> figure
> > out.
> >
> > Now, after running gambas as superuser ("sudo gambas3") I have given up
> the
> > keyboard hypothesis (at least for now). I went back to the hypothesis
> that
> > it has to do with some file or directory permission. Nevertheless, I have
> > not been able to determine which file or directory it could be. As to the
> > project tree, I have opened it up completely (rwxrwxrwx for the
> directories
> > and at least rw-rw-rw- for the files. Even for the hidden ones.  It did
> not
> > help.
> >
> > I have also searched for every single file and directory related to
> gambas.
> > For this I used searches like "locate -i --regex .*gambas.*" and "gbr3"
> and
> > "gbx3", etc. Saved the results to a file and checked file and directory
> > permissions. I could not find and thing unexpected.
> >
> > I have exhausted my bag of tricks so I have resorted to either of two
> ugly
> > workarounds:  running gambas as superuser or doing the edition in a
> virtual
> > machine. In the last option, I just mount the project tree as a directory
> > in the virtual machine. Then I make the changes in the virtual machine
> and
> > test them in the real machine. Cumbersome, but has worked.
> > I would ask you to try running "sudo gambas3". If you can edit your files
> > as superuser, then it will be very likely that we have exactly the same
> > problem.
> >
> > Saudações
> >
> > - fernando
> >
> > 2017-05-14 18:19 GMT-03:00 Glaucio Araujo :
> >
> > > Hi,
> > >
> > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas
> > 3.9.1
> > > and 3.9.2(PPA).
> > >
> > >
> > > ​My system information:
> > >
> > > [System]
> > > Gambas=3.9.2
> > > OperatingSystem=Linux
> > > Kernel=4.10.0-20-generic
> > > Architecture=x86_64
> > > Distribution=Ubuntu 17.04
> > > Desktop=XFCE
> > > Theme=Gtk
> > > Language=pt_BR.UTF-8
> > > Memory=3829M
> > >
> > > [Libraries]
> > > Cairo=libcairo.so.2.11400.8
> > > Curl=libcurl.so.4.4.0
> > > DBus=libdbus-1.so.3.14.7
> > > GStreamer=libgstreamer-1.0.so.0.1004.0
> > > GTK+2=libgtk-x11-2.0.so.0.2400.31
> > > GTK+3=libgtk-3.so.0.2200.11
> > > OpenGL=libGL.so.1.2.0
> > > Poppler=libpoppler.so.64.0.0
> > > QT4=libQtCore.so.4.8.7
> > > QT5=libQt5Core.so.5.7.1
> > > SDL=libSDL-1.2.so.0.11.4
> > > SQLite=libsqlite3.so.0.8.6
> > >
> > > [Environment]
> > > CLUTTER_BACKEND=x11
> > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
> > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path
> > > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
> > > DESKTOP_SESSION=xubuntu
> > > DISPLAY=:0.0
> > > GB_GUI=gb.qt4
> > > GDMSESSION=xubuntu
> > > GLADE_CATALOG_PATH=:
> > > GLADE_MODULE_PATH=:
> > > GLADE_PIXMAP_PATH=:
> > > GTK_MODULES=gail:atk-bridge
> > > GTK_OVERLAY_SCROLLING=0
> > > HOME=
> > > J2REDIR=/usr/lib/jvm/java-8-oracle/jre
> > > J2SDKDIR=/usr/lib/jvm/java-8-oracle
> > > JAVA_HOME=/usr/lib/jvm/java-8-oracle
> > > JOURNAL_STREAM=8:23426
> > > LANG=pt_BR.UTF-8
> > > LANGUAGE=pt_BR:pt:en
> > > LOGNAME=
> > > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path
> > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
> > > sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/
> > > lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/
> > > bin:/usr/lib/jvm/java-8-oracle/jre/bin
> > > PWD=
> > > QT_ACCESSIBILITY=1
> > > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
> > > QT_QPA_PLATFORMTHEME=gtk2
> > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/
> > > 1227,unix/:/tmp/.ICE-unix/1227
> > > SHELL=/bin/bash
> > > SHLVL=0
> > > SSH_AGENT_PID=1209
> > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
> > > TZ=:/etc/localtime
> > > USER=
> > > USERNAME=
> > > WINDOWPATH=1
> > > XAUTHORITY=/run/user/1000/gdm/Xauthority
> > > 

[Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open

2017-05-23 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1104=L21haW4-

Comment #3 by PICCORO LENZ MCKAY:

Its same protocol for mocosoft sql server as sybase was the original software 
behind of... so TDS protocol its the used for sybase and mocosoft sql server, 
only mocosoft added changes to the protocol since version 5.0 to the lasted 
8.X, so does'n matter the server type..



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open

2017-05-23 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1104=L21haW4-

Comment #2 by zxMarce:

Piccoro,

I don't have any Sybase servers to test. I will, nonetheless, try first with 
both MSSql 2005 and Firebird.
Is there any chance that I get access to a Sybase test DB of your property if I 
need it for debugging?

Regards,
zxMarce.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.debug: Unable to open fifo

2017-05-23 Thread Tobias Boege
On Tue, 23 May 2017, T Lee Davidson wrote:
> Hello folks,
> 
> I am trying to see if gb.debug will help me diagnose why HttpClient does not 
> properly expose redirect response codes on my 
> system (and reportedly Tobi's system) while it does so correctly on Benoît's 
> system.
> 
> However, the documentation for gb.debug is so sparse that I am having to 
> experiment and, of course, having a problem.
> 
> With the following command-line application code (using the gb.debug 
> component):
> ' Gambas module file
> 
> Public Sub Main()
> 
>Dim sName As String
> 
>sName = Debug.Begin()
>Print sName
>Debug.Start ' Unable to open fifo
>Debug.Write("Hello world")
>Debug.Stop
>Debug.End
> 
> End
> 
> Public Sub Debug_Read(Data As String)
> 
>Print Data
> 
> End
> ' End Gambas module file
> 
> Debug.Start causes an exception: "Unable to open fifo". By looking in 
> /tmp/gambas.1000/, I can see that the process id input and 
> output pipes are successfully created with the correct file mode permissions 
> (600) for my user as owner. But, the Start 
> procedure apparently cannot open the output fifo (ref. 
> https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c).
> 
> Am I attempting to use this component incorrectly?
> 

I think you're attempting to use the wrong component. gb.debug is meant for
the Gambas IDE to debug a Gambas project. You can look at the source code of
the IDE to try to figure out how to use it. I don't understand its protocol
at all. My wild guess is that your error comes from not having started the
application in debug mode (gbx3 -g)?

In any case, I doubt debugging your *Gambas* code will give you any insight
into the gb.net.curl issue, as gb.net.curl and curl itself are not written
in Gambas.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.debug: Unable to open fifo

2017-05-23 Thread T Lee Davidson
Hello folks,

I am trying to see if gb.debug will help me diagnose why HttpClient does not 
properly expose redirect response codes on my 
system (and reportedly Tobi's system) while it does so correctly on Benoît's 
system.

However, the documentation for gb.debug is so sparse that I am having to 
experiment and, of course, having a problem.

With the following command-line application code (using the gb.debug component):
' Gambas module file

Public Sub Main()

   Dim sName As String

   sName = Debug.Begin()
   Print sName
   Debug.Start ' Unable to open fifo
   Debug.Write("Hello world")
   Debug.Stop
   Debug.End

End

Public Sub Debug_Read(Data As String)

   Print Data

End
' End Gambas module file

Debug.Start causes an exception: "Unable to open fifo". By looking in 
/tmp/gambas.1000/, I can see that the process id input and 
output pipes are successfully created with the correct file mode permissions 
(600) for my user as owner. But, the Start 
procedure apparently cannot open the output fifo (ref. 
https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c).

Am I attempting to use this component incorrectly?


---
Lee


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread PICCORO McKAY Lenz
i update the odbc documentation:

odbc documentation was update by me and splited for better:

* Overall odbc related: http://gambaswiki.org/wiki/doc/odbc
* ODBC specific like the Mysql howto (WIP):
http://gambaswiki.org/wiki/howto/odbcdatabase
* notes in connection class doc:
http://gambaswiki.org/wiki/comp/gb.db/connection
* notes in connection class host property:
http://gambaswiki.org/wiki/comp/gb.db/_connection/host

and send the bug of string connection but with lower priority

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-23 14:13 GMT-04:00 PICCORO McKAY Lenz :

> ok thanks.. great work.. please i'll watch over the póssibility to
> workaround over the count and max misc!
>
> 2017-05-23 14:04 GMT-04:00 ML :
>
>> >> If the component fails to connect when other (gambas) component
>> >> properties are set, it could be something I did no foresee. Please
>> >> elaborate and I'll try to see if I can fix it.
>>
> it fails, i'll send a gambas bug report later.. i just test it and works
> like a charm..
>
> by example:
>
>   $conexionodbc = New Connection
>   $conexionodbc.Type = "odbc"
>   $conexionodbc.Host = "Driver=FreeTDS;TDS_Version=5.
> 0;Server=10.10.200.10;Port=2638;UId=dba;Pwd=sql;Database=sybase"
>
>   $conexionodbc.Pass =  "sql" ' this are right passwd but its property
> configure later
>   Try $conexionodbc.Open ' then here will fail due the set pass property
> later
>
> that piece of code will fail due the pass property set after the string
> connection
>
> unless that every works perfect! and i writing some docs in gambaswiki,
> plea take a view later for spell chek.. (u know what i taking about ...)
>
>
>> >>
>> >> zxMarce
>> >>
>> >> On 23/05/17 14:01, PICCORO McKAY Lenz wrote:
>> >>> well in my svn version of 3.9 are working.. but i dont know if are
>> >> available in 3.9.0 officially
>> >>> also noted that code must configure only host and type, if any other
>> are
>> >> configured connection will fail
>> >>> Lenz McKAY Gerardo (PICCORO)
>> >>> http://qgqlochekone.blogspot.com
>> >>>
>> >>> 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz > >:
>>  the odbc gambas connection supports DSN-less mode? i mean, all the
>> >> settings into the gambas code, no need of ini files i remenber that
>> this
>> >> are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the
>> so-called
>> >> "Connection Strings".
>>  i can update the documentation but i wish to know if are available in
>> >> gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the
>> missing
>> >> image cache i can sustituye and upload newer or made a text only
>>  Lenz McKAY Gerardo (PICCORO)
>>  http://qgqlochekone.blogspot.com
>> >>
>> >>
>> >> 
>> >> --
>> >> Check out the vibrant tech community on one of the world's most
>> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> >> ___
>> >> Gambas-user mailing list
>> >> Gambas-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >>
>> > 
>> --
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > ___
>> > Gambas-user mailing list
>> > Gambas-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open

2017-05-23 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1104=L21haW4-

Comment #1 by PICCORO LENZ MCKAY:

odbc documentation was update by me and splited for better:

* notes in connection class host property: 
http://gambaswiki.org/wiki/comp/gb.db/_connection/host



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open

2017-05-23 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1104=L21haW4-

PICCORO LENZ MCKAY reported a new bug.

Summary
---

ODBC driver misc 1: if name, login or pass are specified connection does not 
open

Type : Bug
Priority : Low
Gambas version   : 3.9
Product  : ODBC driver


Description
---

in the following piece of code a DSN string connection are used, 
but apart only the type and host a user and pass was already defined, 

...so if more properties thant the host and type are defined, the connection 
fails to happen:


Public Function getConexionodbc()
  
  $conexionodbc = New Connection
  $conexionodbc.Type = "odbc"   'esto siempre va en minusculas: always must be 
lowercase
  $conexionodbc.Host = 
"Driver=FreeTDS;TDS_Version=5.0;Server=10.10.200.10;Port=2638;UId=dba;Pwd=sql;Database=sybasedemo"
  $conexionodbc.Login = "dba"
  $conexionodbc.Password = "sql"  ' sybase defaults
  
  Try $conexionodbc.Open
  
  If Error Then
$conexionodbc = Null
  Endif  
  
End


System information
--

[System]
Gambas=3.9.1
OperatingSystem=Linux
Kernel=3.2.0-0.bpo.4-686-pae
Architecture=x86
Distribution=debian 6.1
Desktop=
Theme=VenenuX
Language=es_VE.UTF-8
Memory=1695M

[Libraries]
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.4.0
GStreamer=libgstreamer-0.10.so.0.27.0
GTK+2=libgtk-x11-2.0.so.0.2000.1
Poppler=libpoppler.so.5.0.0
QT4=libQtCore.so.4.7.4
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-SDLMZFhfxe,guid=e84bee4349323ab2fdd0e833000d3724
DESKTOP_SESSION=openbox
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=openbox
GDM_LANG=es_VE.UTF-8
GDM_XSERVER_LOCATION=local
GNOME_KEYRING_CONTROL=/tmp/keyring-F6Av2Z
GNOME_KEYRING_PID=28945
HOME=
LANG=es_VE.UTF-8
LOGNAME=
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/.rvm/bin
PWD=
SHELL=/bin/bash
SSH_AGENT_PID=28992
SSH_AUTH_SOCK=/tmp/ssh-MIgmw28954/agent.28954
TZ=:/etc/localtime
USER=
USERNAME=
WINDOWPATH=7:8:8:8:8
XAUTHORITY=/.Xauthority
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
XDG_SESSION_COOKIE=b7d14e28769c4139a06b6f99000c-1493388004.744958-1810097376



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XMLRPC-Server

2017-05-23 Thread T Lee Davidson
Hello Hans,

RpcServer.Listen relies on ServerSocket which is part of the gb.net component. 
The documentation does not specify that gb.net is 
required for gb.xml.rpc, but it apparently is.


On 05/23/2017 07:55 AM, Hans Lehmann wrote:
> Hello,
> 
> I'm currently experimenting with the gb.xml.rpc component. An XMLRPC client 
> works well (see archive attached). Now I would like 
> to offer on the installed Web server Lighttpd (under Mint 17.1) a webservice 
> (XMLRPC server) and via the XMLRPC client call. The 
> following source code for the XMLRPC server provides an error in line ***. 
> Can someone help me?
> 
> Hans
> 
> ' Gambas module file
> 
> Public hXMLRPC As RpcServer
> 
> Public Sub Main()
> 
>Dim hXMLRPCFunction As RpcFunction
>Dim iXMLRPCPort, iXMLRPCServerMaxConnections As Integer
> 
>hXMLRPC = New RpcServer As "hXMLRPC"
>iXMLRPCPort = 9009
>iXMLRPCServerMaxConnections = 1
> 
>hXMLRPCFunction = New RpcFunction("add2integer", [XmlRpc.xInteger, 
> XmlRpc.xInteger], XmlRpc.xInteger)
> ' hXMLRPCFunction.Help = ("Addition of 2 integers")
>hXMLRPC.Register(hXMLRPCFunction)
> 
>Try hXMLRPC.Listen(iXMLRPCPort, iXMLRPCServerMaxConnections) ' ***
>If Error Then
>   Print "Error-Text: " & Error.Text & gb.NewLine & "Error-Location: " & 
> Error.Where
>   hXMLRPC.Stop()
>Endif
>If hXMLRPC.Listening Then
>   Print "The XMLRPC server listens for port " & Str(iXMLRPCPort)
>Endif
> 
> End
> 
> Public Sub hXMLRPC_RemoteCall(sMethod As String, aParameters As Variant[])
>Select Case sMethod
>  Case "add2integer"
>Sum(aParameters)
>End Select
> End
> 
> Public Sub Sum(aParameters As Variant[])
>hXMLRPC.SetReply(aParameters[0] + aParameters[1])  hXMLRPC.Stop()
> 
> End
> 
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> 
> 
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

-- 
Lee
__

"Artificial Intelligence is no match for natural stupidity."

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What is the maximum text we can put on a TextArea?

2017-05-23 Thread Fernando Cabral
Tobi wrote:
>I don't know where your problems with text input controls come from but I
>just generated a 10^6 characters long string and inserted it into a
TextArea
>without any problems.

That's impressive. And much longer than I need.
Perhaps I should try a different explanation for the failure. Which makes
sense, since
different strings have given different limits on the test I've performed.

Thank you.

- fernando

2017-05-23 13:58 GMT-03:00 Tobias Boege :

> On Tue, 23 May 2017, Fernando Cabral wrote:
> > How much text can we display on TextArea?
> > Even after performing serval tests I couldn' t find out.
> > It seems sometimes I can display 7000 characters,
> > sometimes  twice as much.
> >
> > Perhaps someone can point me the proper documentation.
> >
>
> Whatever the answer is, it is not to be found in the Gambas documentation.
> Gambas borrows its primitive graphical controls from toolkits, Gtk and QT,
> in (meanwhile) multiple versions. Their documentation is where you should
> start looking. (I would *assume* that the answer is: as much as memory
> permits.)
>
> I don't know where your problems with text input controls come from but I
> just generated a 10^6 characters long string and inserted it into a
> TextArea
> without any problems.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread PICCORO McKAY Lenz
ok thanks.. great work.. please i'll watch over the póssibility to
workaround over the count and max misc!

2017-05-23 14:04 GMT-04:00 ML :

> >> If the component fails to connect when other (gambas) component
> >> properties are set, it could be something I did no foresee. Please
> >> elaborate and I'll try to see if I can fix it.
>
it fails, i'll send a gambas bug report later.. i just test it and works
like a charm..

by example:

  $conexionodbc = New Connection
  $conexionodbc.Type = "odbc"
  $conexionodbc.Host =
"Driver=FreeTDS;TDS_Version=5.0;Server=10.10.200.10;Port=2638;UId=dba;Pwd=sql;Database=sybase"

  $conexionodbc.Pass =  "sql" ' this are right passwd but its property
configure later
  Try $conexionodbc.Open ' then here will fail due the set pass property
later

that piece of code will fail due the pass property set after the string
connection

unless that every works perfect! and i writing some docs in gambaswiki,
plea take a view later for spell chek.. (u know what i taking about ...)


> >>
> >> zxMarce
> >>
> >> On 23/05/17 14:01, PICCORO McKAY Lenz wrote:
> >>> well in my svn version of 3.9 are working.. but i dont know if are
> >> available in 3.9.0 officially
> >>> also noted that code must configure only host and type, if any other
> are
> >> configured connection will fail
> >>> Lenz McKAY Gerardo (PICCORO)
> >>> http://qgqlochekone.blogspot.com
> >>>
> >>> 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz  >:
>  the odbc gambas connection supports DSN-less mode? i mean, all the
> >> settings into the gambas code, no need of ini files i remenber that this
> >> are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the
> so-called
> >> "Connection Strings".
>  i can update the documentation but i wish to know if are available in
> >> gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the
> missing
> >> image cache i can sustituye and upload newer or made a text only
>  Lenz McKAY Gerardo (PICCORO)
>  http://qgqlochekone.blogspot.com
> >>
> >>
> >> 
> >> --
> >> Check out the vibrant tech community on one of the world's most
> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >> ___
> >> Gambas-user mailing list
> >> Gambas-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread ML
It should; as far as I know nobody sent any further patches to the ODBC
component other than me...

On 23/05/17 14:59, PICCORO McKAY Lenz wrote:
> hi Ml/zxMarce this feature are available officially in the normal 3.9.X
> release and up? i use the svn and i dont know if !
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-23 13:56 GMT-04:00 ML :
>
>> Piccoro,
>>
>> Using ODBC via ConnectionString needs only the Connection.Type (so that
>> gambas knows it should use the ODBC component) and Connection.Host (for
>> the connection data) properties correctly set.
>>
>> The component will, first and foremost, scan the .Host property looking
>> for semicolons (";"). If it finds at least one, it will assume the
>> property holds a ConnStr.
>> If there are no semicolons, it will connect as it always did, with a
>> DSN. Otherwise, it will use the ConnStr in .Host to call ODBC's
>> SQLDriverConnect() function.
>> But when the component calls that ODBC function, no other (gambas)
>> component properties are used, and thus are ignored. It is assumed that
>> all necessary data to connect is present in the ConnStr.
>>
>> If the component fails to connect when other (gambas) component
>> properties are set, it could be something I did no foresee. Please
>> elaborate and I'll try to see if I can fix it.
>>
>> zxMarce
>>
>> On 23/05/17 14:01, PICCORO McKAY Lenz wrote:
>>> well in my svn version of 3.9 are working.. but i dont know if are
>> available in 3.9.0 officially
>>> also noted that code must configure only host and type, if any other are
>> configured connection will fail
>>> Lenz McKAY Gerardo (PICCORO)
>>> http://qgqlochekone.blogspot.com
>>>
>>> 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz :
 the odbc gambas connection supports DSN-less mode? i mean, all the
>> settings into the gambas code, no need of ini files i remenber that this
>> are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the so-called
>> "Connection Strings".
 i can update the documentation but i wish to know if are available in
>> gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the missing
>> image cache i can sustituye and upload newer or made a text only
 Lenz McKAY Gerardo (PICCORO)
 http://qgqlochekone.blogspot.com
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread PICCORO McKAY Lenz
hi Ml/zxMarce this feature are available officially in the normal 3.9.X
release and up? i use the svn and i dont know if !

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-23 13:56 GMT-04:00 ML :

> Piccoro,
>
> Using ODBC via ConnectionString needs only the Connection.Type (so that
> gambas knows it should use the ODBC component) and Connection.Host (for
> the connection data) properties correctly set.
>
> The component will, first and foremost, scan the .Host property looking
> for semicolons (";"). If it finds at least one, it will assume the
> property holds a ConnStr.
> If there are no semicolons, it will connect as it always did, with a
> DSN. Otherwise, it will use the ConnStr in .Host to call ODBC's
> SQLDriverConnect() function.
> But when the component calls that ODBC function, no other (gambas)
> component properties are used, and thus are ignored. It is assumed that
> all necessary data to connect is present in the ConnStr.
>
> If the component fails to connect when other (gambas) component
> properties are set, it could be something I did no foresee. Please
> elaborate and I'll try to see if I can fix it.
>
> zxMarce
>
> On 23/05/17 14:01, PICCORO McKAY Lenz wrote:
> > well in my svn version of 3.9 are working.. but i dont know if are
> available in 3.9.0 officially
> > also noted that code must configure only host and type, if any other are
> configured connection will fail
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> >
> > 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz :
> >> the odbc gambas connection supports DSN-less mode? i mean, all the
> settings into the gambas code, no need of ini files i remenber that this
> are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the so-called
> "Connection Strings".
> >> i can update the documentation but i wish to know if are available in
> gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the missing
> image cache i can sustituye and upload newer or made a text only
> >> Lenz McKAY Gerardo (PICCORO)
> >> http://qgqlochekone.blogspot.com
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread ML
Piccoro,

Using ODBC via ConnectionString needs only the Connection.Type (so that
gambas knows it should use the ODBC component) and Connection.Host (for
the connection data) properties correctly set.

The component will, first and foremost, scan the .Host property looking
for semicolons (";"). If it finds at least one, it will assume the
property holds a ConnStr.
If there are no semicolons, it will connect as it always did, with a
DSN. Otherwise, it will use the ConnStr in .Host to call ODBC's
SQLDriverConnect() function.
But when the component calls that ODBC function, no other (gambas)
component properties are used, and thus are ignored. It is assumed that
all necessary data to connect is present in the ConnStr.

If the component fails to connect when other (gambas) component
properties are set, it could be something I did no foresee. Please
elaborate and I'll try to see if I can fix it.

zxMarce

On 23/05/17 14:01, PICCORO McKAY Lenz wrote:
> well in my svn version of 3.9 are working.. but i dont know if are available 
> in 3.9.0 officially
> also noted that code must configure only host and type, if any other are 
> configured connection will fail
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz :
>> the odbc gambas connection supports DSN-less mode? i mean, all the settings 
>> into the gambas code, no need of ini files i remenber that this are, since 
>> Gambas 3.8.1, IIRC, gb.db.odbc was made to support the so-called "Connection 
>> Strings".
>> i can update the documentation but i wish to know if are available in gambas 
>> 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the missing image 
>> cache i can sustituye and upload newer or made a text only
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread PICCORO McKAY Lenz
well in my svn version of 3.9 are working.. but i dont know if are
available in 3.9.0 officially

also noted that code must configure only host and type, if any other are
configured connection will fail

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz :

> the odbc gambas connection supports DSN-less mode? i mean, all the
> settings into the gambas code, no need of ini files
>
> i remenber that this are, since Gambas 3.8.1, IIRC, gb.db.odbc was made
> to support the so-called "Connection Strings".
>
> i can update the documentation but i wish to know if are available in
> gambas 3.9.0 at leas
>
> http://gambaswiki.org/wiki/doc/odbc
>
> for the missing image cache i can sustituye and upload newer or made a
> text only
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What is the maximum text we can put on a TextArea?

2017-05-23 Thread Tobias Boege
On Tue, 23 May 2017, Fernando Cabral wrote:
> How much text can we display on TextArea?
> Even after performing serval tests I couldn' t find out.
> It seems sometimes I can display 7000 characters,
> sometimes  twice as much.
> 
> Perhaps someone can point me the proper documentation.
> 

Whatever the answer is, it is not to be found in the Gambas documentation.
Gambas borrows its primitive graphical controls from toolkits, Gtk and QT,
in (meanwhile) multiple versions. Their documentation is where you should
start looking. (I would *assume* that the answer is: as much as memory
permits.)

I don't know where your problems with text input controls come from but I
just generated a 10^6 characters long string and inserted it into a TextArea
without any problems.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread PICCORO McKAY Lenz
the odbc gambas connection supports DSN-less mode? i mean, all the settings
into the gambas code, no need of ini files

i remenber that this are, since Gambas 3.8.1, IIRC, gb.db.odbc was
made to support
the so-called "Connection Strings".

i can update the documentation but i wish to know if are available in
gambas 3.9.0 at leas

http://gambaswiki.org/wiki/doc/odbc

for the missing image cache i can sustituye and upload newer or made a text
only


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] table name from db object result

2017-05-23 Thread PICCORO McKAY Lenz
i found that:

namcol = Split(rsObj.Fields[indexcol].Name, ".")
gridproductos.Columns[indexcol].Title = namcol[1]

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-22 15:24 GMT-04:00 PICCORO McKAY Lenz :

> in sqlite or odbc how can extrat the table name, due i try to autodetect
> the field name from a result:
>
> For indexcol = 0 To rsObj.Fields.Count - 1
>   rsObj.Fields[indexcol].Name
> next
>
> but in sqlite case i get string: "tablename.colname" event "colname"
>
> so there's some property or method that can showme the table,
>
> NOTE: i know that i made the select so the tablename must be.. but there's
> another way? its for a dataexporter between databases
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Tabstrip question

2017-05-23 Thread PICCORO McKAY Lenz
2017-05-23 12:02 GMT-04:00 :

> Forgot about the array accessors :)
>
if u are taking about VB the "group" are equivalent


Maybe I will use the TabStrip[Index].Visible solution if that turns out
> more elegant ;)
>
> Thnaks again,
>
> gbWilly
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Tabstrip question

2017-05-23 Thread gbwilly
On 2017-05-23 17:50, Charlie wrote:
> Hi Willy,
> I have done a little testing and you can't disable the 'Tab'  but you 
> can
> disable the controls on that tab.
> Using this I was unable to click on a Button on 'Tab1' 
> *TabPanel1[1].Enabled
> = False *
> This will hide the tab from view *TabPanel1[1].Visible = False*
> 
> 

Hi Charlie and thanks,

Meanwhile I also found the TabStrip[Index].Enabled = False solution.
Forgot about the array accessors :)

Maybe I will use the TabStrip[Index].Visible solution if that turns out 
more elegant ;)

Thnaks again,

gbWilly



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Tabstrip question

2017-05-23 Thread Charlie
Hi Willy,
I have done a little testing and you can't disable the 'Tab'  but you can
disable the controls on that tab.
Using this I was unable to click on a Button on 'Tab1' *TabPanel1[1].Enabled
= False *
This will hide the tab from view *TabPanel1[1].Visible = False*




-
Check out www.gambas.one 
--
View this message in context: 
http://gambas.8142.n7.nabble.com/Tabstrip-question-tp59088p59091.html
Sent from the gambas-user mailing list archive at Nabble.com.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] What is the maximum text we can put on a TextArea?

2017-05-23 Thread Fernando Cabral
How much text can we display on TextArea?
Even after performing serval tests I couldn' t find out.
It seems sometimes I can display 7000 characters,
sometimes  twice as much.

Perhaps someone can point me the proper documentation.

Thanks

- fernando

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Split: misleading Wiki

2017-05-23 Thread Matti
Very good explanation, thank you.

Am 22.05.2017 um 23:33 schrieb d4t4f...@gmail.com:
> Matti
>
> Your string has 3 substrings when split with SPLIT (STRING, "#"):
>
> Index 0: "Hello"
> Index 1: ""
> Index 2: "12345"
>
> It is documented that separators are single characters, not strings; you can 
> specify a string because any of its individual characters may be used as 
> separator.
>
> If you also specify IgnoreVoids as True, split should omit the null string 
> and return only:
>
> Index 0: "Hello"
> Index 1: "12345"
>
> HTH,
> zxMarce.
>
> On May 22, 2017, 18:02, at 18:02, Matti  wrote:
>> Ok, thank you, Tobi.
>> I'll have to start thinking again (but not tonight anymore).
>> Matti
>>
>> Am 22.05.2017 um 22:17 schrieb Tobias Boege:
>>> On Mon, 22 May 2017, Matti wrote:
 If I have a string sStr="hello##12345" and want to split it:

 Dim aSplit as String[]
 aSplit = Split(sStr, "##")
 Print aSplit[0], aSplit[1]

 Returns always only "hello". Maybe "12345" is excluded because being
>> an integer?
>>> It is not an integer in this case. It's a string of characters and
>> Split()
>>> doesn't interpret it as an integer. Consequently it has nothing to do
>> with
>>> IgnoreVoid in my book.
>>>
>>> If anything is wrong, it is your use of the separator. According to
>> the
>>> documentation (and the implementation!), the Separator argument is a
>> *list*
>>> of separator characters, i.e. "##" will not split against the string
>> "##",
>>> but it will split against "#" or "#".
>>>
>>> To give a different example, if you had given the string
>> "abc#123,456" and
>>> separators "#," you would have gotten the array ["abc", "123",
>> "456"].
 Now the Wiki says "StringArray = Split ( String [ , Separators ,
>> Escape , IgnoreVoid , KeepEscape ] )"
 Where "IgnoreVoid" means "a boolean that tells Split() *not* to
>> return void elements."
 By trial and error I found out that "IgnoreVoid" has to be set to
>> 'True' to return "12345". Exactly the opposite.
 The Wiki should be corrected here.

>>> I don't know what's the problem with your installation but on mine I
>> get:
>>> $ gbx3 -e 'Split("hello##12345", "##").Join("|")'
>>> hello||12345
>>>
>>> i.e. it works. Notice the empty string between "hello" and "12345"
>>> in the context of what I explained about the separators above!
>>>
>>> Regards,
>>> Tobi
>>>
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Tabstrip question

2017-05-23 Thread gbwilly
Hi all,

Is it possible to disable a tab in a Tabstrip?
Can't find a thing in documentation, or maybe I have missed it.

Thanks,

gbWilly

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] left$ vs String.left behaviour

2017-05-23 Thread PICCORO McKAY Lenz
2017-05-23 7:07 GMT-04:00 Charlie :

> I'm not sure where 'querycolsinserts' comes in to this but the code below
>
sorry was my fault, i mean "query1"


> works fine: -
>


> Print Left$(query1, -1)
> Print Left(query1, -1)
> The output is: -
> `SHW325X`
> `SHW325X`
> `SHW325X`
>
quite strange, in my system only the Left$ removed .. the other does not
work..

thanks for your example!


>
>
>
>
> -
> Check out www.gambas.one
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/left-vs-String-left-behaviour-tp59070p59083.html
> Sent from the gambas-user mailing list archive at Nabble.com.
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gambas on androit? status and future!?!

2017-05-23 Thread PICCORO McKAY Lenz
there's any way to run on androit, there's any port event older? available

gambas on ANDROIT? what its the status?

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gambas on MAC? status and future?

2017-05-23 Thread PICCORO McKAY Lenz
there's any way to run, there's any port event older? available

gambas on MAC? what its the status?


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] XMLRPC-Server

2017-05-23 Thread Hans Lehmann

Hello,

I'm currently experimenting with the gb.xml.rpc component. An XMLRPC 
client works well (see archive attached). Now I would like to offer on 
the installed Web server Lighttpd (under Mint 17.1) a webservice (XMLRPC 
server) and via the XMLRPC client call. The following source code for 
the XMLRPC server provides an error in line ***. Can someone help me?


Hans

' Gambas module file

Public hXMLRPC As RpcServer

Public Sub Main()

  Dim hXMLRPCFunction As RpcFunction
  Dim iXMLRPCPort, iXMLRPCServerMaxConnections As Integer

  hXMLRPC = New RpcServer As "hXMLRPC"
  iXMLRPCPort = 9009
  iXMLRPCServerMaxConnections = 1

  hXMLRPCFunction = New RpcFunction("add2integer", [XmlRpc.xInteger, 
XmlRpc.xInteger], XmlRpc.xInteger)

' hXMLRPCFunction.Help = ("Addition of 2 integers")
  hXMLRPC.Register(hXMLRPCFunction)

  Try hXMLRPC.Listen(iXMLRPCPort, iXMLRPCServerMaxConnections) ' ***
  If Error Then
 Print "Error-Text: " & Error.Text & gb.NewLine & "Error-Location: 
" & Error.Where

 hXMLRPC.Stop()
  Endif
  If hXMLRPC.Listening Then
 Print "The XMLRPC server listens for port " & Str(iXMLRPCPort)
  Endif

End

Public Sub hXMLRPC_RemoteCall(sMethod As String, aParameters As Variant[])
  Select Case sMethod
Case "add2integer"
  Sum(aParameters)
  End Select
End

Public Sub Sum(aParameters As Variant[])
  hXMLRPC.SetReply(aParameters[0] + aParameters[1])  hXMLRPC.Stop()

End



XMLRPCC-0.0.9.tar.gz
Description: application/gzip
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] left$ vs String.left behaviour

2017-05-23 Thread Charlie
I'm not sure where 'querycolsinserts' comes in to this but the code below
works fine: - 
*Public Sub Form_Open()
Dim query1 As String = "`SHW325X`,"
Dim siCount As Short
For siCount = Len(query1) DownTo 1
Print String.Left(query1, siCount)
Next
Print String.Left(query1, -1)
Print Left$(query1, -1)
Print Left(query1, -1)
End*
The output is: -
`SHW325X`,
`SHW325X`
`SHW325X
`SHW325
`SHW32
`SHW3
`SHW
`SH
`S
`
`SHW325X`
`SHW325X`
`SHW325X`




-
Check out www.gambas.one 
--
View this message in context: 
http://gambas.8142.n7.nabble.com/left-vs-String-left-behaviour-tp59070p59083.html
Sent from the gambas-user mailing list archive at Nabble.com.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Split: misleading Wiki

2017-05-23 Thread Gianluigi
A variant of the previous suggestions, to ignored (5) voids :-)

Public Sub Main()

  Dim ss As String[]
  Dim s As String

  ss = Split("hello#12345", "#")
  For Each s In ss
If Not IsNull(s) Then Print s;
  Next

End

Regards
Gianluigi

2017-05-23 8:38 GMT+02:00 Fabien Bodard :

> A=Split (replace ("##yyy##1234","##",chr (27)),chr (27))
>
> Or do not use double characters as separator .
>
>
>
>
> Le 22 mai 2017 23:35,  a écrit :
>
> > Matti
> >
> > Your string has 3 substrings when split with SPLIT (STRING, "#"):
> >
> > Index 0: "Hello"
> > Index 1: ""
> > Index 2: "12345"
> >
> > It is documented that separators are single characters, not strings; you
> > can specify a string because any of its individual characters may be used
> > as separator.
> >
> > If you also specify IgnoreVoids as True, split should omit the null
> string
> > and return only:
> >
> > Index 0: "Hello"
> > Index 1: "12345"
> >
> > HTH,
> > zxMarce.
> >
> > On May 22, 2017, 18:02, at 18:02, Matti  wrote:
> > >Ok, thank you, Tobi.
> > >I'll have to start thinking again (but not tonight anymore).
> > >Matti
> > >
> > >Am 22.05.2017 um 22:17 schrieb Tobias Boege:
> > >> On Mon, 22 May 2017, Matti wrote:
> > >>> If I have a string sStr="hello##12345" and want to split it:
> > >>>
> > >>> Dim aSplit as String[]
> > >>> aSplit = Split(sStr, "##")
> > >>> Print aSplit[0], aSplit[1]
> > >>>
> > >>> Returns always only "hello". Maybe "12345" is excluded because being
> > >an integer?
> > >>>
> > >> It is not an integer in this case. It's a string of characters and
> > >Split()
> > >> doesn't interpret it as an integer. Consequently it has nothing to do
> > >with
> > >> IgnoreVoid in my book.
> > >>
> > >> If anything is wrong, it is your use of the separator. According to
> > >the
> > >> documentation (and the implementation!), the Separator argument is a
> > >*list*
> > >> of separator characters, i.e. "##" will not split against the string
> > >"##",
> > >> but it will split against "#" or "#".
> > >>
> > >> To give a different example, if you had given the string
> > >"abc#123,456" and
> > >> separators "#," you would have gotten the array ["abc", "123",
> > >"456"].
> > >>
> > >>> Now the Wiki says "StringArray = Split ( String [ , Separators ,
> > >Escape , IgnoreVoid , KeepEscape ] )"
> > >>> Where "IgnoreVoid" means "a boolean that tells Split() *not* to
> > >return void elements."
> > >>>
> > >>> By trial and error I found out that "IgnoreVoid" has to be set to
> > >'True' to return "12345". Exactly the opposite.
> > >>>
> > >>> The Wiki should be corrected here.
> > >>>
> > >> I don't know what's the problem with your installation but on mine I
> > >get:
> > >>
> > >>$ gbx3 -e 'Split("hello##12345", "##").Join("|")'
> > >>hello||12345
> > >>
> > >> i.e. it works. Notice the empty string between "hello" and "12345"
> > >> in the context of what I explained about the separators above!
> > >>
> > >> Regards,
> > >> Tobi
> > >>
> > >
> > >---
> > ---
> > >Check out the vibrant tech community on one of the world's most
> > >engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > >___
> > >Gambas-user mailing list
> > >Gambas-user@lists.sourceforge.net
> > >https://lists.sourceforge.net/lists/listinfo/gambas-user
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Split: misleading Wiki

2017-05-23 Thread Fabien Bodard
A=Split (replace ("##yyy##1234","##",chr (27)),chr (27))

Or do not use double characters as separator .




Le 22 mai 2017 23:35,  a écrit :

> Matti
>
> Your string has 3 substrings when split with SPLIT (STRING, "#"):
>
> Index 0: "Hello"
> Index 1: ""
> Index 2: "12345"
>
> It is documented that separators are single characters, not strings; you
> can specify a string because any of its individual characters may be used
> as separator.
>
> If you also specify IgnoreVoids as True, split should omit the null string
> and return only:
>
> Index 0: "Hello"
> Index 1: "12345"
>
> HTH,
> zxMarce.
>
> On May 22, 2017, 18:02, at 18:02, Matti  wrote:
> >Ok, thank you, Tobi.
> >I'll have to start thinking again (but not tonight anymore).
> >Matti
> >
> >Am 22.05.2017 um 22:17 schrieb Tobias Boege:
> >> On Mon, 22 May 2017, Matti wrote:
> >>> If I have a string sStr="hello##12345" and want to split it:
> >>>
> >>> Dim aSplit as String[]
> >>> aSplit = Split(sStr, "##")
> >>> Print aSplit[0], aSplit[1]
> >>>
> >>> Returns always only "hello". Maybe "12345" is excluded because being
> >an integer?
> >>>
> >> It is not an integer in this case. It's a string of characters and
> >Split()
> >> doesn't interpret it as an integer. Consequently it has nothing to do
> >with
> >> IgnoreVoid in my book.
> >>
> >> If anything is wrong, it is your use of the separator. According to
> >the
> >> documentation (and the implementation!), the Separator argument is a
> >*list*
> >> of separator characters, i.e. "##" will not split against the string
> >"##",
> >> but it will split against "#" or "#".
> >>
> >> To give a different example, if you had given the string
> >"abc#123,456" and
> >> separators "#," you would have gotten the array ["abc", "123",
> >"456"].
> >>
> >>> Now the Wiki says "StringArray = Split ( String [ , Separators ,
> >Escape , IgnoreVoid , KeepEscape ] )"
> >>> Where "IgnoreVoid" means "a boolean that tells Split() *not* to
> >return void elements."
> >>>
> >>> By trial and error I found out that "IgnoreVoid" has to be set to
> >'True' to return "12345". Exactly the opposite.
> >>>
> >>> The Wiki should be corrected here.
> >>>
> >> I don't know what's the problem with your installation but on mine I
> >get:
> >>
> >>$ gbx3 -e 'Split("hello##12345", "##").Join("|")'
> >>hello||12345
> >>
> >> i.e. it works. Notice the empty string between "hello" and "12345"
> >> in the context of what I explained about the separators above!
> >>
> >> Regards,
> >> Tobi
> >>
> >
> >---
> ---
> >Check out the vibrant tech community on one of the world's most
> >engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >___
> >Gambas-user mailing list
> >Gambas-user@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user