Re: [Gambas-user] serverpages: problem with quoting

2012-08-08 Thread Adam Ant
On Thu, Aug 9, 2012 at 12:38 PM, Adam Ant wrote: > Oh Noes! > I have just hit my first problem with the serverpages scripting. > > "> > > I can't figure out how to escape the quotes around the string > parameter for the GetResourceLocn(sName As String) f

Re: [Gambas-user] Syntax help for IF after a Try statement

2012-08-08 Thread Adam Ant
On Thu, Aug 9, 2012 at 12:35 PM, rocko wrote: > Ok if I replace the 'Else If' with an 'Else' > I get an error: > Else without If. > But there is an 'If' after the 'Try'. > unless you can't put an 'Else' after an 'Try...If' Ah! No you can't use Try If blahblahblah (and there are some other thi

[Gambas-user] serverpages: problem with quoting

2012-08-08 Thread Adam Ant
Oh Noes! I have just hit my first problem with the serverpages scripting. "> I can't figure out how to escape the quotes around the string parameter for the GetResourceLocn(sName As String) function call. That function, btw, just returns a path to a cache directory in /tmp and it works fine

Re: [Gambas-user] Syntax help for IF after a Try statement

2012-08-08 Thread Adam Ant
On Thu, Aug 9, 2012 at 11:23 AM, rocko wrote: > Trying to get a message.info to display when a successful connection > to a database is made. > Tried using an 'Else If' after a 'Try $hConn.Open' statement > but that gives an error. > So tried a simple 'If' but I'm not sure how the syntax should be

[Gambas-user] Server pages: untagged text at top of page

2012-08-08 Thread Adam Ant
Morning all, I'm having a go at learning how to use this web scripting facility. Attached is a little project that uses it to load a file into a webkit WebView control (IOW no server needed). It seems to work fine except there are two lines at the top of the returned page (before ) that look li

Re: [Gambas-user] Adding values to fields in SQLite table??

2012-08-07 Thread Adam Ant
On Wed, Aug 8, 2012 at 2:59 PM, Fabien Bodard wrote: > Le 8 août 2012 04:49, "Adam Ant" a écrit : >> The answer is: >> > It's create >> rTable=$hConn.create("Inventory",> want to update>) >> IF rTable.Available then >> rTab

Re: [Gambas-user] Adding values to fields in SQLite table??

2012-08-07 Thread Adam Ant
On Wed, Aug 8, 2012 at 4:48 AM, rocko wrote: 8< > PUBLIC SUB btnAdd_Click() > > DIM $hConn AS NEW Connection > DIM rTable AS Result > > $hConn.Open > > TRY $hConn.Open > IF ERROR THEN PRINT "Database cannot be opened. Error = ", Error.Text > > INC Application.Busy > > > $hConn.Begin

Re: [Gambas-user] Heirarch of controls vs Tab order/z order...

2012-08-07 Thread Adam Ant
On Wed, Aug 8, 2012 at 11:30 AM, Stephen Bungay wrote: > >So nothing on this then? It just is what it is? > > On 08/04/2012 12:58 PM, Stephen Bungay wrote: > > Fedora 13 > > Gambas 3.2.90 > > Gnome 2 > > > > Four input boxes are arranged on a tab, lets call them TextBox1, > > TextBox2, Tex

Re: [Gambas-user] Adding a new control to existing container(Panel)

2012-08-05 Thread Adam Ant
On Sun, Aug 5, 2012 at 11:01 PM, abbat wrote: > > A have an existing Panel1 which contains a few controls. > How to add a new control to existing panel? > I could not find anything in properies of panel(list of controls or > something else) > Thanks > -- > View this message in context: > http://o

Re: [Gambas-user] Time Format in 00:00:00 (Two digits)

2012-08-05 Thread Adam Ant
And if you want to be even more confused, try this: Public Sub Main() Dim sTime As String = Time(Now()) Print sTime Print Time(Now()) End The bind moggles! Bruce -- Live Security Virtual Conference Exclusive live ev

[Gambas-user] Small suggestion re Help Browser "same URL" click

2011-09-13 Thread Adam Ant
Benoit, This mod needs confirmation as I am unsure as to why the original line was commented out. It just doesn't update hWebView.Url if the calculated target Url is the same as what's already being displayed. I have had it running here for ~10 days or so and have not seen any side effect. regar

[Gambas-user] Small suggestion re help browser

2011-09-13 Thread Adam Ant
This mod has two effects: 1) prevents the inadvertent transition of the help page when the user clicks somewhere in the help tree *other than on a specific item*. 2) if the click is on recognizable row in the treeview, it is acted on (this saves the frustration when the cursor is only a few pixels

[Gambas-user] LXDE (again) sugggestion

2011-09-13 Thread Adam Ant
Adds the lxde terminal to the choices in the IDE Options. (very low priority) Bruce Index: FOption.class === --- FOption.class(revision 4126) +++ FOption.class(working copy) @@ -59,7 +59,7 @@ cmbTheme.Add(("Select a them

[Gambas-user] Open IDE not maximized

2011-09-13 Thread Adam Ant
I am sure there was a way to make the IDE not open maximized. I have searched the mail archives and found nothing. Is it possible? Bruce -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest