Search found 1510 matches

by BruceSteers
Monday 26th February 2024 4:12pm
Forum: Project showcase
Topic: Blockski+ , like Klotski but with a board editor.
Replies: 43
Views: 6915

Re: Blockski+ , like Klotski but with a board editor.

okay so I bet you're wondering why i have stopped posting a ridiculous amount of revision updates per day? Because of a couple of rather huge and complicated updates is why. such an update it deserved a version number change. Now 1.3 Upgrade 1. I finally added multi-selection to the board editor :) ...
by BruceSteers
Monday 26th February 2024 11:03am
Forum: General
Topic: [Solved] TabPanel1 bad index
Replies: 4
Views: 408

Re: [Solved] TabPanel1 bad index

No worries, It's easy to miss all an object can do on the wiki. Never underestimate the importance of these 2 little links on wiki pages... Untitled.png They will take you to the pages that are relevant to.. Creating new myVar = New Object https://gambaswiki.org/wiki/comp/gb.form/tabpanel/_new Or us...
by BruceSteers
Monday 26th February 2024 12:33am
Forum: General
Topic: [Solved] TabPanel1 bad index
Replies: 4
Views: 408

Re: TabPanel1 bad index

did you try the .Visible property? probably easier than removing/adding https://gambaswiki.org/wiki/comp/gb.form/_tabpanelcontainer ' tab 3 hides if not in edit, or if in edit it hides if no opencart or shows if opencart TabPabel1[3].Visible = If(bIsInEditMode, If(bCanUseOpencart, True, False), Fals...
by BruceSteers
Sunday 25th February 2024 6:46pm
Forum: Beginners
Topic: First Program Test
Replies: 7
Views: 692

Re: First Program Test

well without seeing example code it's hard to tell. Dim cannot be used outside of methods. ' the following are global variables seen to all methods of the class and Public ones can be accessed from other classes Public MyPublicVar as Integer Private MyPrivateVar As Integer Static Public MyStaticVar ...
by BruceSteers
Sunday 25th February 2024 2:18pm
Forum: General
Topic: [Sloved] Unable to Convert from VB.net to Gambas Please help
Replies: 7
Views: 453

Re: Unable to Convert from VB.net to Gambas Please help

Maybe check out the gambas barcode readers on the farm and forget VB code translating.

Cogier who runs this site wrote 3 of them so i'm sure he will be great for any help you may need.
by BruceSteers
Sunday 25th February 2024 2:12pm
Forum: General
Topic: [Sloved] Unable to Convert from VB.net to Gambas Please help
Replies: 7
Views: 453

Re: Unable to Convert from VB.net to Gambas Please help

Any way I have no idea what it is supposed to do but this code works and does something ;) Public Function Mod10CheckDigit(BarcodeNumber As String) As Integer Dim I As Integer Dim TotalOdd As Integer Dim TotalEven As Integer Dim Total As Integer BarcodeNumber = Trim(BarcodeNumber) 'Get the Odd numbe...
by BruceSteers
Sunday 25th February 2024 1:46pm
Forum: General
Topic: [Sloved] Unable to Convert from VB.net to Gambas Please help
Replies: 7
Views: 453

Re: Unable to Convert from VB.net to Gambas Please help

But Total is an Integer not a String so why are you using it on an integer value?
by BruceSteers
Sunday 25th February 2024 1:51am
Forum: General
Topic: [Sloved] Unable to Convert from VB.net to Gambas Please help
Replies: 7
Views: 453

Re: Unable to Convert from VB.net to Gambas Please help

and that end line...

Return Mod10CheckDigit = (Barcode & BarcodeLocal)

what's that about? you can't use the function name in the return value like that in gambas.

might be something more like this...

Return CInt(Str(Barcode & BarcodeLocal))

:D
by BruceSteers
Sunday 25th February 2024 1:37am
Forum: General
Topic: [Sloved] Unable to Convert from VB.net to Gambas Please help
Replies: 7
Views: 453

Re: Unable to Convert from VB.net to Gambas Please help

You will have to see what the VB Right() function does. In gambas it is a String function and can only be used on strings not integers. you can use Str() and CInt() to convert to string and back to integer Maybe something like this works... Dim LocalBarcodeNumber As Integer = 10 - IIf(Right(Str(Tota...
by BruceSteers
Friday 23rd February 2024 12:00pm
Forum: Beginners
Topic: First Program Test
Replies: 7
Views: 692

Re: First Program Test

Yes there are a variety of "Containers" and the main form is one of them. You will get used to it all don't worry. I'd hardly call it falling down. just a mere stumbling block :) It''s just one of those things to learn along the way. Gambas is far easier than VB at the end of the day and t...