Search found 445 matches

by BruceSteers
Monday 19th April 2021 11:53pm
Forum: General
Topic: Advice 0n converting this VB code
Replies: 4
Views: 27

Re: Advice 0n converting this VB code

The function just checks the last digit is zero so there are other ways.
Like using % that gives the remainder of a division
eg.
Dim BarcodeLocal As Integer = 10 - IIf(Total % 10 = 0, 10, Total % 10)
by BruceSteers
Monday 19th April 2021 10:08am
Forum: Component
Topic: Vector graphics support ?
Replies: 4
Views: 73

Re: Vector graphics support ?

Unfortunately the result is not what I hoped for, namely that such vector graphics would adapt automatically to their container’s size – there is an SvgImage.class So if you Dim MyImage as SvgImage and use that image you may have further control like using Paint and Resize to make it correct size I...
by BruceSteers
Friday 16th April 2021 11:21am
Forum: Lounge
Topic: Bruce gets recognition in Gambas 3.16.0
Replies: 4
Views: 35

Re: Bruce gets recognition in Gambas 3.16.0

aaw bless ya guys to be fair i had to recognise myself :lol: Ben asked on the mailing list for any contributors to add themselves to the contributors file. I deliberated for a bit thinking I hadn't done much but tons of bug reporting (tons and tons of bug reporting). So i added myself and listed the...
by BruceSteers
Thursday 15th April 2021 2:29pm
Forum: General
Topic: Trapping Return - Serious problem ?
Replies: 16
Views: 246

Re: Trapping Return - Serious problem ?

Well then, I’m somehow back to where it all began. Using key.code & Key.[names] was something I already had tried, but I didn’t know why it went wrong with certain keys. Now I do. Too bad that my latest idea can’t be used on every computer, because it really works for any key on my computer. This i...
by BruceSteers
Thursday 15th April 2021 9:03am
Forum: General
Topic: Trapping Return - Serious problem ?
Replies: 16
Views: 246

Re: Trapping Return - Serious problem ?

Good morning - or which part of the day it is where you live. I have been pretty busy testing your suggestions and when one sort of combines some of them even an amateur like self can find a very satisfying solution. Keypoint was this little code from Steve : Public Sub Form_KeyPress() Dim varKey A...
by BruceSteers
Wednesday 14th April 2021 11:27pm
Forum: General
Topic: Trapping Return - Serious problem ?
Replies: 16
Views: 246

Re: Trapping Return - Serious problem ?

Also there is this way. (Using Key["Return"] method not Key.Return constant)

Select Key.Code
   Case Key["Return"], Key["Enter"]
   Print "Enter or return was hit"

  Case Key["F1"]
  Print "F1 was hit"

End Select
by BruceSteers
Wednesday 14th April 2021 11:07pm
Forum: General
Topic: Trapping Return - Serious problem ?
Replies: 16
Views: 246

Re: Trapping Return - Serious problem ?

AltGrKey does not work. (it broken in gambas) the right alt key is actually called ISO_Level3_Shift (the Windows keys are called Super) It's a pain dealing with it it's hex value with gtk will be 0xfe03 (as per keysymdef.h) If Key.Code = &hfe03& with qt it's integer value is 16781571 (annoyingly a d...
by BruceSteers
Wednesday 14th April 2021 8:07am
Forum: General
Topic: mysql and British Summer Time problem
Replies: 8
Views: 124

Re: mysql and British Summer Time problem

bill-lancaster wrote:
Wednesday 14th April 2021 7:04am
Time(mysql!DateTime) also shows British Summer Time
yep , like i said in my first reply , date functions (Time() and Date()) do local conversion.
by BruceSteers
Monday 12th April 2021 10:40pm
Forum: General
Topic: [Solved] GridView Highlight selected row
Replies: 3
Views: 101

Re: GridView Highlight selected row

Hang on, it should do it anyway.

You have to set GridVew1.Mode property to single or multiple
by BruceSteers
Monday 12th April 2021 10:39pm
Forum: General
Topic: [Solved] GridView Highlight selected row
Replies: 3
Views: 101

Re: GridView Highlight selected row

GridView1.Rows[GridView1.Row].Selected = True