Re: [Gambas-user] Split: misleading Wiki

2017-05-22 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

Re: [Gambas-user] can a result database object be copy to other database (of different type)

2017-05-22 Thread PICCORO McKAY Lenz
hi again tobias.. only a informative mail: the tools that refers your first links all does not usefully, due with huge data no one its working!.. all the solutions are script based over a mysql dump so all are a disc I/O operation when are using... Lenz McKAY Gerardo (PICCORO) http://qgqlocheko

[Gambas-user] [Gambas Bug Tracker] Bug #1096: MDI toolbuttons with long text

2017-05-22 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1096&from=L21haW4- Bruce BRUEN changed the state of the bug to: Invalid. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot

Re: [Gambas-user] Split: misleading Wiki

2017-05-22 Thread d4t4full
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 sp

Re: [Gambas-user] Split: misleading Wiki

2017-05-22 Thread Matti
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, "##") >> Pri

Re: [Gambas-user] Split: misleading Wiki

2017-05-22 Thread 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

[Gambas-user] Split: misleading Wiki

2017-05-22 Thread Matti
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? Now the Wiki says "StringArray = Split ( String [ , Separators , Escape , Ig

[Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted

2017-05-22 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #6 by PICCORO LENZ MCKAY: hello all, based on documentation from ZXMARGE the count must retunr in INSERTS at leaast. .but seems not! so MAX neither!

[Gambas-user] table name from db object result

2017-05-22 Thread 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 ca

Re: [Gambas-user] can a result database object be copy to other database (of different type)

2017-05-22 Thread PICCORO McKAY Lenz
2017-05-22 13:48 GMT-04:00 Tobias Boege : > 1. Copy the database users (Connection.Users), then the databases > (Connection.Databases) and after that the table schemas > (Connection.Tables) > for each database. I don't think you can expect to transfer anything > else like permissi

Re: [Gambas-user] can a result database object be copy to other database (of different type)

2017-05-22 Thread Tobias Boege
On Mon, 22 May 2017, PICCORO McKAY Lenz wrote: > umm usefully, but the source its odbc.. was my faul... > > in any case, there's posible to cpy between results object of differents > connections? that the right quiestion! > Ok, after I formulated my answer, I can see how you may want to use Gamb

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

2017-05-22 Thread PICCORO McKAY Lenz
i have a var named query1 = "`SHW325X`," when i do String.Left(querycolsinserts, -1) the las char "," are not removed, so i used Left$(querycolsinserts, -1) and works.. now this due the "`" char inside? so then how can i do when i dont know if the string are utf-8 or not? due the behaviour dep

Re: [Gambas-user] can a result database object be copy to other database (of different type)

2017-05-22 Thread PICCORO McKAY Lenz
umm usefully, but the source its odbc.. was my faul... in any case, there's posible to cpy between results object of differents connections? that the right quiestion! the case its important to make a special daemon for webservices.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com

Re: [Gambas-user] can a result database object be copy to other database (of different type)

2017-05-22 Thread Tobias Boege
On Mon, 22 May 2017, PICCORO McKAY Lenz wrote: > i mean, due the now well knowed problem of odbc, > > i have two databases, db1 can be mysql, odbc, etc, and the other target db > must be sqlite.. > > can be possible to port from the db1 to the memory table in sqlite3 db2 ? > or at leas ina normal

Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-22 Thread PICCORO McKAY Lenz
hi zxMarce debuggin i note that based on their documentation, inserts must return affected roms and seems gambas odbc object does not made this.. please illuminate me! i made a odbc inserts and either returns affected roms! some other has same results? Lenz McKAY Gerardo (PICCORO) http://qgqloche

[Gambas-user] can a result database object be copy to other database (of different type)

2017-05-22 Thread PICCORO McKAY Lenz
i mean, due the now well knowed problem of odbc, i have two databases, db1 can be mysql, odbc, etc, and the other target db must be sqlite.. can be possible to port from the db1 to the memory table in sqlite3 db2 ? or at leas ina normal sqlite3 table? Lenz McKAY Gerardo (PICCORO) http://qgqloch

[Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted

2017-05-22 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #5 by Benoît MINISINI: I have updated the documentation of the Result.Count property, to explain that ODBC connections may return the -1 value. -

[Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted

2017-05-22 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #10 by PICCORO LENZ MCKAY: due the result object to make the MoveTo need the count for... as said zxMarce all .MoveXXX methods except .MoveNext SEEMS need a record count from the provider. so there's no way for the DAt

Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-22 Thread PICCORO McKAY Lenz
hello Fabian.. hello zxMarce Fabian, your method/code does not work as zxMarce said.. (in any case, the resultset and db manage was done in form code) due the result object to make the MoveTo need the count for... as said zxMarce all .MoveXXX methods except .MoveNext SEEMS need a record count fr

[Gambas-user] [Gambas Bug Tracker] Bug #1103: no border change on a imageview control.

2017-05-22 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1103&from=L21haW4- Comment #1 by Benoît MINISINI: Fixed in revision #8136. Benoît MINISINI changed the state of the bug to: Fixed. -- Check out the vibrant tech communi

[Gambas-user] [Gambas Bug Tracker] Bug #1103: no border change on a imageview control.

2017-05-22 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1103&from=L21haW4- Benoît MINISINI changed the state of the bug to: Accepted. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Sla

Re: [Gambas-user] Editing still blocked

2017-05-22 Thread Fernando Cabral
For those of you that, like me, are having trouble with editing a source file, I have been using two functional workarounds: a) I run a virtual machine (vbox), and then I mount the project directory onto the virtual machine. From this virtual machine I edit the source code, compile it, and then sw