[Gambas-user] operator precedence

2009-03-26 Thread o.s.p
hi
something is changed lately (gambas2-1916)?

' Gambas module file

PUBLIC SUB Main()

DIM a AS Integer = 1
DIM b AS Integer = 2
DIM r AS Integer

r = TRUE
PRINT NOT a, r
r = a  b
PRINT r
r = NOT a  b
PRINT r
r = NOT (a  b)
PRINT r

END

seems the not operator comes before the  evaluation...
is there a reference in the docs?

thanks

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


Re: [Gambas-user] operator precedence

2009-03-26 Thread Benoît Minisini
 hi
 something is changed lately (gambas2-1916)?

 ' Gambas module file

 PUBLIC SUB Main()

 DIM a AS Integer = 1
 DIM b AS Integer = 2
 DIM r AS Integer

 r = TRUE
 PRINT NOT a, r
 r = a  b
 PRINT r
 r = NOT a  b
 PRINT r
 r = NOT (a  b)
 PRINT r

 END

 seems the not operator comes before the  evaluation...
 is there a reference in the docs?

 thanks


Nothing changed for a while. The NOT operator was always stronger than ''.

I have updated the documentation wiki with a page about Operator Evaluation 
Order.

Regards,

-- 
Benoît


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


[Gambas-user] Unable to change valuebox contents after selecting record from combobox

2009-03-26 Thread CelticBhoy

I am new to Gambas  am having a small problem with a simple stock control
program. When th program starts a file is read and each record is loaded and
broken down and the element values are assigned to separate arrays, a
combobox is loaded with the names of the stock items. On my form when
running the program I can select what record I want to change with the
combobox, and the correct details for each record are displayed where they
are meant to be, the problem is that I cant edit the contents of the on
screen information other than the combobox contents. All the other info is
stored in valuebox's with type number. Why wont it let me edit the other
contents ??
-- 
View this message in context: 
http://www.nabble.com/Unable-to-change-valuebox-contents-after-selecting-record-from-combobox-tp22723578p22723578.html
Sent from the gambas-user mailing list archive at Nabble.com.


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


Re: [Gambas-user] analyzing version numbers in gambas

2009-03-26 Thread Fabien Bodard
Dim arf As New Float[]
Dim f As Float
Dim s As String
For Each s In Split(1.2,1.4,1.6,1.10,1.16,1.20,1.35,1.5,1.3,1.1)
  arf.add(s)
Next

arf.Sort

For Each f In arf
 Print f
Next


Regards,
Fabien Bodard

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


[Gambas-user] PB using tableview object

2009-03-26 Thread Olivier Cruilles
Hi,

I'm trying to use the Tableview object in a project and I have 2  
Columns configured.

I have configured the TableView to be able to edit each Cell in the  
right column and lock the left Column
but in real, by using the key, in edition mode,  I can always acces to  
the left Column that is locked and write text inside.


I don't know how to lock completly the left column as in the Gambas  
IDE = Object Properties Panel ?

Does anyone can help me please ?

Olivier Cruilles
Mail: linu...@club-internet.fr



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


Re: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable

2009-03-26 Thread jbskaggs

I checked the Deban contents and theses are the components listed below:

I do not see gambas2-gb-sdl-sound

gambas2
Complete visual development environment for Gambas
gambas2-dev
Gambas compilation tools
gambas2-doc
Gambas documentation
gambas2-gb-chart
The Gambas charting component
gambas2-gb-compress
The Gambas compression component
gambas2-gb-compress-bzlib2
The Gambas bzlib2 component
gambas2-gb-compress-zlib
The Gambas zlib compression component
gambas2-gb-crypt
The Gambas crypt encription component
gambas2-gb-db
Gambas database access common libraries
gambas2-gb-db-firebird
The Firebird driver for the Gambas database component
gambas2-gb-db-form
Gambas database bound controls
gambas2-gb-db-mysql
The MySQL driver for the Gambas database component
gambas2-gb-db-odbc
The Gambas ODBC driver database component
gambas2-gb-db-postgresql
The PostgreSQL driver for the Gambas database component
gambas2-gb-db-sqlite
The Gambas sqlite3 driver database component
gambas2-gb-db-sqlite2
The Gambas sqlite2 driver database component
gambas2-gb-desktop
Gambas Portland project compatibility component
gambas2-gb-form
A gambas native form component
gambas2-gb-form-dialog
A gambas native mdi form component
gambas2-gb-form-mdi
A gambas native mdi form component
gambas2-gb-gtk
The Gambas gtk component
gambas2-gb-gtk-ext
The Gambas extended gtk GUI component
gambas2-gb-gtk-svg
The Gambas SVG importing component
gambas2-gb-gui
The graphical toolkit selector component
gambas2-gb-image
A Gambas image effects component
gambas2-gb-info
A Gambas information component
gambas2-gb-net
The Gambas networking component
gambas2-gb-net-curl
The Gambas advanced networking component
gambas2-gb-net-smtp
Gambas component to use smtp protocol
gambas2-gb-opengl
The OpenGL component for Gambas
gambas2-gb-pcre
The Gambas regexp component
gambas2-gb-pdf
The Gambas pdf component
gambas2-gb-qt
The Gambas Qt GUI component
gambas2-gb-qt-ext
The Gambas extended Qt GUI component
gambas2-gb-qt-kde
The Gambas KDE component
gambas2-gb-qt-kde-html
The Gambas KHTML component
gambas2-gb-qt-opengl
OpenGL with QT toolkit Gambas component
gambas2-gb-report
Gambas report component
gambas2-gb-sdl
The Gambas SDL component
gambas2-gb-settings
Gambas utilities class
gambas2-gb-v4l
The Gambas video for Linux component
gambas2-gb-vb
The Gambas to Visual Basic(tm) compatibility component
gambas2-gb-web
Gambas CGI for web applications component
gambas2-gb-xml
Gambas XML component
gambas2-gb-xml-rpc
Gambas RPC component
gambas2-gb-xml-xslt
Gambas XSLT component
gambas2-ide
Visual development environment for the Gambas programming language
gambas2-runtime
The Gambas runtime
gambas2-script
The Gambas scripter 

JB Skaggs


Bugzilla from gam...@users.sourceforge.net wrote:
 
 I have discovered that Gambas2 for ubuntu does not have a
 gambas2-gb-sdl-sound package like the other distros.

 BUT I can install my program with dpkg -i and it works fine and accesses
 the sdl.sound drivers okay.

 Although the Ubuntu system keeps pointing out that my program package is
 broken. (such as the synaptic package manager)

 Is this a bug in Ubuntu 8.1 or what am I missing?

 JB SKaggs

 
 I guess this is a bug in the Ubuntu packages. Maybe they put gb.sdl.sound 
 inside the gb.sdl package? Did you try to remove the Ubuntu package and 
 install the Debian ones instead?
 
 -- 
 Benoît
 
 
 --
 ___
 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/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22729920.html
Sent from the gambas-user mailing list archive at Nabble.com.


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


Re: [Gambas-user] Problem with gambas..

2009-03-26 Thread richard terry
On Fri, 27 Mar 2009 02:13:27 pm Carlos Humberto Llumiquinga Hidalgo wrote:
 Hi Dimitris... the folder exist.. and the spell is correctly... that was
 the first what I checked..
 By the way it's not empty...

 2009/3/26 Dimitris Anogiatis dos...@gmail.com

  You either are trying to delete a folder that doesn't exist or it exists
  but
  you didn't spell it correctly
 
  try the isDIR function to determine if the folder you're looking exists
  indeed
 
  Documentation for the isDIR function is located here:
  http://gambasdoc.org/help/lang/isdir?v3
 
  Hope that helps.
  Dimitris
 
  On Thu, Mar 26, 2009 at 6:29 PM, Carlos Humberto Llumiquinga Hidalgo 
 
  carlitos.h...@gmail.com wrote:
   Hi all
  
   I have a problem with a code on gambas..
  
   I'm trying.. this code.. EXEC [rm, application.Path 
   /imagenes/*.*] ... just I wanna erase the content of images folder.
  
   But I got an error.. on console... rm: can't erase
   «/home/carlosh/Prueba/imagenes/*.*»: File don't exists
  
   Help Please.. what's wrong.. 

Try putting a print statement in there e.g

PRINT rmapplication.Path  /imagenes/*.*


copy the terminal output from this into a real linux terminal and see what 
error message you get.

or  try your exact command out first in a terminal before putting it into a 
gambas string.  Also check the file permissions on the files in that 
directory.

Just a suggestion in case you've not tried it.


richard
.
  
   Thanks...
   Carlos H.
 
  -
 -
 
   ___
   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



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