John Rose | 10 Feb 10:44
Picon
Gravatar

DataSource & DataBrowser problem

As I previously said, when I add a new row (by first clicking the New
button in  my DataBrowser control) / change data displayed in my
DataBrowser control and then click the save button (in my DataBrowser
control), it comes up with a dialog box saying 'Connection not opened'
with OK button only (and clicking OK does not result in saving). The
Editable property is set to true. Has anybody successfully used the Save
button in a DataBrowser control in Gambas3?

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
abbat | 8 Feb 22:14
Picon
Gravatar

COPY file if "file allready exist"


Sorry, if it's abasic question (but GAMBAS is Almost mean BASIC :-))

How to copy a file if it is already exist?
And do not get any error.
Overwrite

Tnx.
--

-- 
View this message in context: http://old.nabble.com/COPY-file-if-%22file-allready-exist%22-tp33289311p33289311.html
Sent from the gambas-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
gambas | 8 Feb 11:02

Issue 208 in gambas: DataBrowser not have property "Grid" in property panel IDE.

Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 208 by bespalov...@gmail.com: DataBrowser not have  
property "Grid" in property panel IDE.
http://code.google.com/p/gambas/issues/detail?id=208

DataBrowser not have property "Grid" (DataBrowser.View.Grid) in property  
panel IDE.
It is often required.

[System]
OperatingSystem=Linux
Kernel=3.2.3-2.fc16.i686
Architecture=i686
Memory=2061988 kB
DistributionVendor=redhat
DistributionRelease=RFRemix release 16 (Verne)
Desktop=Gnome

[Gambas 2]
Version=2.23.1
Path=/usr/bin/gbx2

[Gambas 3]
Version=3.0.0
Path=/usr/bin/gbx3

(Continue reading)

gambas | 8 Feb 10:36

Issue 207 in gambas: Event Save get error at DataBrowser

Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 207 by bespalov...@gmail.com: Event Save get error at DataBrowser
http://code.google.com/p/gambas/issues/detail?id=207

If i open table in DataBrowser and press Save, i get error box "Cannot  
modify record: SQL error or missing database".

I can add or delete item at DataBrowser no problem.

I think it try  save to database empty line in DataBrowser.

[System]
OperatingSystem=Linux
Kernel=3.2.3-2.fc16.i686
Architecture=i686
Memory=2061988 kB
DistributionVendor=redhat
DistributionRelease=RFRemix release 16 (Verne)
Desktop=Gnome

[Gambas 3]
Version=3.0.0
Path=/usr/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.8.0
(Continue reading)

Wally | 8 Feb 07:34
Picon

gb.gsl documentation


Where cani find information, how to provide documentation on the gb.gsl 
component project. I would like to add this helper-popups to gb.gsl.
( see attachment please )
Where is a good place to upload some examples using the gb.gsl component ?

wally 
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Gambas-user mailing list
Gambas-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
Rolf Schmidt | 7 Feb 16:38
Picon
Favicon

Start a form minized

Hi everybody out there

is it possible to start a form minimized or invisible.
I use a TrayIcon to terminate the program and program should stay in the 
background and wait for incoming calls. Then a second from will be shown with 
the connection data but the main form - which only has a close button - 
should not be shown.

Any help?
Thanks 
Rolf
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Gambas-user mailing list
Gambas-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
John Rose | 7 Feb 16:25
Picon
Gravatar

DataSource & DataBrowser problem

Thanks, Benoit, for your explanation. Now that I've deleted the
DataBrowserCountry control & created it again inside the
DataSourceCountry control, I now see the countries (i.e. France & Great
Britain) in the DataBrowserCountry control.

However, when I try to add a new country (e.g. Fz), it moves the cursor
to a blank line following Great Britain and I key in Fz. When I click
the save button (in the DataBrowserCountry control), it comes up with a
dialog box saying 'Connection not opened' with OK button only (and
clicking OK does not result in saving). This also happens if I try to
change a country's name & save it. The DataBrowserCountry control has
Editable set to true as shown in the code fragment from the FMain class
which calls the FCountryMaintenance form:
Public Sub ButtonCountryMaintenance_Click()
  Dim hForm As FCountryMaintenance
  hForm = New FCountryMaintenance
  hForm.DataSourceCountry.Connection = MDatabase.DatabaseConnection
  hForm.DataSourceCountry.Table = "country"
  hForm.DataSourceCountry.Update()
  hForm.Refresh()
  hForm.DataBrowserCountry.Columns = ["country"]
  hForm.DataBrowserCountry.Editable = True
  hForm.DataBrowserCountry.Update()
  hForm.DataBrowserCountry.Refresh()
  hForm.Show() 
  hForm.DataBrowserCountry.SetFocus()
  Me.Hide()
End

PS I do not see a property named Labels for either control class in the
(Continue reading)

abbat | 7 Feb 09:23
Picon
Gravatar

Date to string MMddyyyyHHmmss


How to get a Date without any sewparators, splash and dots?

In VB.NET  I can get it by:
Dim T = Now.ToString("MMddyyyyHHmmss")

I get "02062012192533"

In "HOW TO" I could not find such exemple.

Thanks
--

-- 
View this message in context: http://old.nabble.com/Date-to-string-MMddyyyyHHmmss-tp33277051p33277051.html
Sent from the gambas-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
John Rose | 6 Feb 19:04
Picon
Gravatar

DataSource & DataBrowser problem

I thought I'd found the solution (when I looked at the documentation
again), namely to use the Update & Refresh methods on the controls as
per the code below:
  FMain.ValueBoxLatitude.Value = MDatabase.ResultSite!latitude
  FMain.DataSourceCountry.Connection = MDatabase.DatabaseConnection
  FMain.DataSourceCountry.Table = "country"
  FCountryMaintenance.DataSourceCountry.Update()
  FCountryMaintenance.DataSourceCountry.Refresh()
  FMain.DataBrowserCountry.Columns = ["country"]
  FCountryMaintenance.DataBrowserCountry.Update()
  FCountryMaintenance.DataBrowserCountry.Refresh()

However, that didn't work. Has anyone got the DataSource & DataBrowser
controls working in conjunction with each other? If so, I'd be grateful
if you could post some details with its associated project attached.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Jussi Lahtinen | 6 Feb 17:00
Picon

Missing symbols

One of these days... maybe I have missed something, but any clue why Gambas
programs cannot find some symbols from libc?
Specifically I'm talking about fmod, my libraries (written with C) can find
this without problem.
And even more strange, Gambas programs can find some symbols from libc.

Library "libc:6"
Private Extern modf(param As Float, pp As Pointer) As Float
Private Extern fmod(param1 As Float, param2 As Float) As Float

Public Sub Main()
Dim pp As Pointer = Alloc(SizeOf(gb.Float))

  Print modf(Pi, pp)
  Print fmod(Pi, 2) '<-- only this raises "cannot find symbol..."

End

Demonstration project attached.

Jussi
Attachment (MissingSymbol-0.0.1.tar.gz): application/x-gzip, 4559 bytes
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
(Continue reading)

Willy Raets | 6 Feb 14:40
Picon
Favicon

TAB on keyboard

Hi All,

When making forms I determine hierarchy of the controls on the form for
navigating the form with TAB-key during runtime. This to make the forms
more user friendly.

Simple example:
---------------
Application with 1 form with 3 ValueBoxes.
ValBox1 and ValBox2 for input
ValBox3 for output (lets say sum of ValboX1 and ValBox2)
ValBox3 is read only
ValBox1 has focus on opening form
Button1 for close
Hierarchy on form is ValBox1, ValBox2, Button1, ValBox3.

Running application then fill in ValBox1.
Hit TAB-key brings you to ValBox2, fill in and ValBox3 gets calculated.
Hit Tab-key brings you to Button1

So far so good.
Now hitting Tab-key brings you to ValBox3. (no input field but a read
only), I would like it to go back to ValBox1 and skip the read only
controls. In VB I could determine if a control was effected by use of
TAB-key or not by a property on the control.
-----------------

I'm running into this on all my input forms in all my applications
(Gambas2) and it is bothering me. Been looking for a solution for some
time but haven't found any.
(Continue reading)


Gmane