Re: [Gambas-user] Latest Gambas packages for Ubuntu - Broken?

2008-11-10 Thread MaxVK

Thanks EpĂ­leg, but I really don't want the unstable release - I need a rock
solid version. Is there an up to date stable version that I can do the same
thing with? Better still if there is actually a full .deb release?

Regards

Max
-- 
View this message in context: 
http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20418142.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Latest Gambas packages for Ubuntu - Broken?

2008-11-10 Thread MaxVK

Thanks charles, but thats for 8.10 and I'm running 7.10 still.

Max


charlesg wrote:
 
 Hi
 
 If you follow the installation bit in kalaharix.wordpress.com you will
 currently get 2.8.2.
 
 rgds
 

-- 
View this message in context: 
http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20423278.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Latest Gambas packages for Ubuntu - Broken?

2008-11-09 Thread MaxVK

Hi, please forgive me if I am getting lost along the way here: I'm on and off
of the PC at the moment for various reasons, and I seem to spend my time
trying to catch up!

Anyway, I went to the Gambas website
(http://gambas.sourceforge.net/download.html) to find the latest packages
for Ubuntu but the link (http://gambas.gnulinex.org/ubuntu) to the newer
packages seems to be broken (The page never loads).

Does anyone have an alternative link to the latest Ubuntu deb packages
please. I currently have Gambas 2.0.0, which I seem to remember updating
some time ago now.

regards

Max
-- 
View this message in context: 
http://www.nabble.com/Latest-Gambas-packages-for-Ubuntu---Broken--tp20408776p20408776.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Synchronized Listboxes or a better way

2008-09-21 Thread MaxVK

I am loading information from a sqlite3 database file using a query. The
results have two fields, Filename and Filepath.

The Filename information is to be loaded into a list box where sorted=true.
Clicking on an item in the filename list will show the Filepath string.

At the moment I am loading the filenames into one list and the filepaths
into another list, but of course the filename list is sorted, so the
connection to the associated filepath in the other list is broken.

Is there a way to keep the lists synchronized when one list is sorted or is
there an easier way to do this, remembering that the filename list is to be
visible at all times, and that there may be duplicate filenames, although
the related filepaths will of course be different?

Thanks

Max
-- 
View this message in context: 
http://www.nabble.com/Synchronized-Listboxes-or-a-better-way-tp19596329p19596329.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to create Multi-Dimensional string array

2008-09-21 Thread MaxVK

I am trying to create a multi dimensional array of string, the size of which
is not known at design time.

Iv spent some time today playing with this, but I cant seem to get it to
work at all. I did think that something like: DIM tArray AS String[,,]
would work, but its not right, and I cant work out what to try next.

Iv seen some posts about creating a multi dimensional array of integers, but
those posts don't seem to help much with strings.

Is this possible?

Many thanks

Max

-- 
View this message in context: 
http://www.nabble.com/How-to-create-Multi-Dimensional-string-array-tp19596365p19596365.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Synchronized Listboxes or a better way

2008-09-21 Thread MaxVK



Benoit Minisini wrote:
 
 On dimanche 21 septembre 2008, MaxVK wrote:
 I am loading information from a sqlite3 database file using a query. The
 results have two fields, Filename and Filepath.

 The Filename information is to be loaded into a list box where
 sorted=true.
 Clicking on an item in the filename list will show the Filepath string.

 At the moment I am loading the filenames into one list and the filepaths
 into another list, but of course the filename list is sorted, so the
 connection to the associated filepath in the other list is broken.

 Is there a way to keep the lists synchronized when one list is sorted or
 is
 there an easier way to do this, remembering that the filename list is to
 be
 visible at all times, and that there may be duplicate filenames, although
 the related filepaths will of course be different?

 Thanks

 Max
 
 You must replace the ListBox controls by ListView controls, and implement
 the 
 Compare event handler to do the sort yourself.
 
 Regards,
 
 -- 
 Benoit Minisini
 

Thanks Benoit. I gave the two items matching keys in the listviews, and then
used MoveNext etc to match them up.

Regards

Max
-- 
View this message in context: 
http://www.nabble.com/Synchronized-Listboxes-or-a-better-way-tp19596329p19596625.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to create Multi-Dimensional string array

2008-09-21 Thread MaxVK



Kari Laine-2 wrote:
 
 On Sun, Sep 21, 2008 at 8:16 PM, MaxVK [EMAIL PROTECTED] wrote:
 

 I am trying to create a multi dimensional array of string, the size of
 which
 is not known at design time.

 Iv spent some time today playing with this, but I cant seem to get it to
 work at all. I did think that something like: DIM tArray AS
 String[,,]
 would work, but its not right, and I cant work out what to try next.

 Iv seen some posts about creating a multi dimensional array of integers,
 but
 those posts don't seem to help much with strings.

 Is this possible?

 Many thanks

 Max

 Hi Max,
 
 hopefully this example will help.
 PUBLIC SUB Button1_Click()
   DIM i AS Integer
   DIM j AS Integer
   DIM k AS Integer
 
   DIM MyArray[10, 10, 10] AS String
 
   FOR i = 0 TO 9
 FOR j = 0 TO 9
   FOR k = 0 TO 9
 
 MyArray[i, j, k] = Chr$(i + 65) Chr$(j + 65)
 Chr$(k
 + 65)
 
   NEXT
 NEXT
   NEXT
 
   PRINT MyArray[4, 4, 4]
 
 END
 
 
 I am a beginner with Gambas but let me know if you need more help. There
 is
 also a book called something like a beginners book for gambas try that
 with Google. It is a PDF about 364 pages. Let me know if you cannot locate
 it.
 
 Best Regards
 Kari Laine
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

Thanks Kari, but I still have a problem:

DIM MyArray[10, 10, 10] AS String

explains where I have been going wrong in my thinking, but at the start of
the routine I have no idea what number will be there. So for example, it
might be 10 or it might be 450.

Is there a way that this can be dynamic, in the same was as DIM MyArray AS
String[]

Regards

Max
-- 
View this message in context: 
http://www.nabble.com/How-to-create-Multi-Dimensional-string-array-tp19596365p19596723.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to create Multi-Dimensional string array

2008-09-21 Thread MaxVK



Benoit Minisini wrote:
 
 On dimanche 21 septembre 2008, Kari Laine wrote:
 On Sun, Sep 21, 2008 at 8:16 PM, MaxVK [EMAIL PROTECTED] wrote:
  I am trying to create a multi dimensional array of string, the size of
  which
  is not known at design time.
 
  Iv spent some time today playing with this, but I cant seem to get it
 to
  work at all. I did think that something like: DIM tArray AS
  String[,,]
  would work, but its not right, and I cant work out what to try next.
 
  Iv seen some posts about creating a multi dimensional array of
 integers,
  but
  those posts don't seem to help much with strings.
 
  Is this possible?
 
  Many thanks
 
  Max
 
  Hi Max,

 hopefully this example will help.
 PUBLIC SUB Button1_Click()
   DIM i AS Integer
   DIM j AS Integer
   DIM k AS Integer

   DIM MyArray[10, 10, 10] AS String

 
 This syntax is deprecated: you should use
 
 DIM MyArray AS NEW String[X, Y, Z]
 
 The number of dimensions is fixed at compile time, but the dimension sizes
 can 
 be any numeric expressions.
 
 Regards,
 
 -- 
 Benoit Minisini
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

Ah thats it! Thanks Benoit. The dimension sizes can be passed as arguments
to a routine and I have what I needed.

regards

Max

-- 
View this message in context: 
http://www.nabble.com/How-to-create-Multi-Dimensional-string-array-tp19596365p19596753.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Enumerating values in sqllite3 database tables

2008-09-17 Thread MaxVK

Hi there. I am making a personal program to catalog a large collection of
photographs and rather than install MySQL just for this purpose I would like
to use sqlite3.

Using the example program I am able to create the database and the tables
within it, and I am (apparently) able to add data to the tables. However I
have been unable to work out how to list the items that have been added to
the tables.

For example I have created Table1 with a field called Field1. I have then
added several items of data (The path and file names of images) to Field1
using code from the example:

$hConn.Begin
rTest = $hConn.Create(Table1)

rTest!Field1 = tFilename
rTest.Update

So far, so good, but how can I get a list of the items in Field1 so that
they can be displayed in a listbox?

Any pointers would be much appreciated.

regards

Max
-- 
View this message in context: 
http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19529262.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Enumerating values in sqllite3 database tables

2008-09-17 Thread MaxVK


charlesg wrote:
 
 Hi,
 
 something like:
 '--
 Private res As Result
 
 lstSupplier.Clear
 res = $hConn.Exec(select * from supp order by s_code)
 For Each res
lstSupplier.Add(res!s_code  ,  res!s_name  ,  res!s_closedate 
 ,  res!s_dayscredit  ,  res!s_datedue)
 Next
 '--
 
 rgds
 

ah! Very many thanks charlesg - That sorted it out.

Am I correct in thinking that select * from supp order by s_code is
standard SQL? If so would it be appropriate to use other SQL statements to
return information in the same way, or is sqlite3 limited to specific SQL
commands?

All the best

Max

-- 
View this message in context: 
http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19529663.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Enumerating values in sqllite3 database tables

2008-09-17 Thread MaxVK


charlesg wrote:
 
 Hi,
 
 I don't know how 'standard' any sql gets:confused:
 You can certainly use sql update and delete commands the same way.
 
 rgds
 
 

:-D Yeah, thats pretty much what I meant. I don't know much SQL (yet), so I
was only wondering if sqlite3 used the same commands or its own proprietary
ones.

Regards

Max
-- 
View this message in context: 
http://www.nabble.com/Enumerating-values-in-sqllite3-database-tables-tp19529262p19534733.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Ubuntu packages updated

2008-09-01 Thread MaxVK

Hello there. Many thanks for supplying this information.

However, I have something of a problem (I think).

Iv added the line deb http://azores.linex.org/gambas-other gutsy main and
quite correctly the update is picked up by the system. However, when the
update manager lists the available updates I am told that only a partial
update is possible.

Further examination within synaptic allows me to select all of the available
updates but when I click apply the list of changes includes completely
removing both of the applications that I have written with Gambas and use on
a regular basis.

The currently installed versions of the updates are reported as 2.0.00910

Is there some way around this or do I need to recompile and re-install my
current programs?

I know I'm a bit behind the current versions, but Iv been off the computer
for some time now and I'm eager to catch up and carry on where I left off.

Regards

Max








Daniel Campos-3 wrote:
 
 Hi:
 
 I've updated Ubuntu packages at gnuLinEx site to 2.4.1:
 
 Gutsy - amd64 and i386
 Feisty - amd64 and i386
 Edgy  - i386
 
 I'll soon abandon Edgy support, there are quite few downloads for that
 version in the logs, I made them mainly for Guadalinex spanish
 distribution but soon they will upgrade to Ubuntu 8.
 
 For sources.list file:
 
 deb http://azores.linex.org/gambas-other gutsy main
 
 or
 
 deb http://azores.linex.org/gambas-other feisty main
 
 or
 
 deb http://azores.linex.org/gambas-other edgy main
 
 Regards,
 
 Daniel
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Ubuntu-packages-updated-tp16312463p19250295.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user