Search found 195 matches

by bill-lancaster
Saturday 4th August 2018 9:28am
Forum: General
Topic: A question about libraries
Replies: 9
Views: 11714

A question about libraries

Example:-
I have a library (LibDb) that deals with database functions. Some of those functions need to call functions held in another library(LibXX).

Incorporating LibXX in LibDb causes an error :-

Code: Select all

"Cannot load LibXX: unable to load LibXX
Any advice would be welcome
by bill-lancaster
Tuesday 3rd July 2018 9:03am
Forum: General
Topic: tableview problem
Replies: 4
Views: 7034

Re: tableview problem

I realised that a more positive indication that the value entered wasn't acceptable so a message was really called for so:- Public Sub gdvInvoices_Click() bSet = True gdvInvoices.Edit End Public Sub gdvInvoices_Save(Row As Integer, Column As Integer, Value As String) If Value = "not acceptable&...
by bill-lancaster
Monday 2nd July 2018 6:41am
Forum: General
Topic: tableview problem
Replies: 4
Views: 7034

Re: tableview problem

Thanks, that is a neat work around.
by bill-lancaster
Sunday 1st July 2018 12:25pm
Forum: General
Topic: tableview problem
Replies: 4
Views: 7034

tableview problem

I want to test the value being entered in a cell and if the test fails, then the value isn't entered. Trouble is that the warning message appears twice ' Gambas class file Public Sub Form_Open() tbvInvoices.Columns.Count = 3 tbvInvoices.Rows.Count = 5 End Public Sub tbvInvoices_Click() tbvInvoices.E...
by bill-lancaster
Sunday 24th June 2018 5:00pm
Forum: General
Topic: mysql DISTINCT & ORDER BY
Replies: 3
Views: 5608

Re: mysql DISTINCT & ORDER BY

Thank you so much.
I thought that was where I'd started - must have been mistaken
Thanks again
by bill-lancaster
Sunday 24th June 2018 9:14am
Forum: General
Topic: mysql DISTINCT & ORDER BY
Replies: 3
Views: 5608

mysql DISTINCT & ORDER BY

I hope it's not a problem posting a mysql issue here! I have a table 'transactions' with a number of fields including 'TransRef and TransDate). I want to select 'TransRef' as DISTINCT and ORDER BY TransDate. I've read a number of learned items on this but can't solve the problem. For example, the ta...
by bill-lancaster
Friday 13th April 2018 7:50am
Forum: General
Topic: DrawingArea help needed
Replies: 8
Views: 12830

Re: DrawingArea help needed

Thanks for all the suggestions - am happily printing and modifying drawing area
by bill-lancaster
Monday 9th April 2018 1:03pm
Forum: General
Topic: DrawingArea help needed
Replies: 8
Views: 12830

DrawingArea help needed

I have a programme that draws a chart in a drawingarea using paint.begin etc. How can I clear the drawingarea for a different form of chart. drawingarea.clear doesn't do it and I can't see a paint method. Also,is there a convenient way to print the drawingarea image to a printer? Any advice would be...
by bill-lancaster
Wednesday 28th February 2018 9:27am
Forum: General
Topic: Quote character in mysql search string
Replies: 5
Views: 7412

Re: Quote character in mysql search string

Ah yes!
The problem was with a record in the db that contained a single (').
Using Gambas Replace function in the SQL statement solves the problem.
SELECT * FROM gCal WHERE EventText = '" & Replace(sNew, "'", "''") & "'"
Thanks for the help.
by bill-lancaster
Tuesday 27th February 2018 9:14pm
Forum: General
Topic: Quote character in mysql search string
Replies: 5
Views: 7412

Re: Quote character in mysql search string

Exactly!
Here is the offending string:-
John Lancaster's birthday