Search found 363 matches

by AndyGable
Monday 25th March 2024 10:10pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2059

Re: Get the Previous Sunday from a Date

The last day of the month is the 1st day of the next month minus one day. yea I know but does that take into account leaps years? in VB.net I can do something like Date = Month.firstday and it will retun 01/01 or 01/02 etc and then I could do Month.lastday and it would return for March 31.03 I need...
by AndyGable
Monday 25th March 2024 7:32pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2059

Re: Get the Previous Sunday from a Date

You cannot use a Date object like that by just adding/subtracting integers from it. You must use DateAdd() https://gambaswiki.org/wiki/lang/dateadd DateAdd() minus 1 week Private Function GetPreviousWeekDayDate(inputDate As Date) As Date Return DateAdd(inputDate, -1, gb.Week) End And DateAdd again ...
by AndyGable
Monday 25th March 2024 1:51am
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2059

[Solved] Get the Previous Sunday from a Date

Hi All I need some help I am trying to get the Previous sunday from a date (for example 23/03/2024 should return me the sunday date of 17th March) as I need to get the Sunday to Monday dates for a report that run for the previous week (no matter what day the report would be run this week it would al...
by AndyGable
Wednesday 20th March 2024 12:46am
Forum: General
Topic: Advise on how to read the following json file
Replies: 1
Views: 1452

Advise on how to read the following json file

Hi all I have the following line coming in from my Server {"messages":{"transactionId":["Invalid value: 5be3f476-f73e-4968-9ea5-721f622eaca2"]}} but I can not seem to work out how I read in the information from the "transactionId" i have this so far (and this ...
by AndyGable
Tuesday 12th March 2024 11:07pm
Forum: General
Topic: Dev PC is 64bit OS client machines 32bit OS
Replies: 1
Views: 286

Dev PC is 64bit OS client machines 32bit OS

Hi everyone, Just wanted to ask a question really. I am developing my system on a 64bit machine but some of my machines are 32bit do I have to have a 32bit machine with Gambas on it to compile the code so it will run on 32bit machine or will the 64bit compile app run on the 32bit machine? I have 30%...
by AndyGable
Tuesday 12th March 2024 6:22pm
Forum: General
Topic: [Sloved] Programmly send Button Name
Replies: 3
Views: 592

Re: Programmly send Button Name

BruceSteers wrote: Tuesday 12th March 2024 2:45pm Me["BUTTONAMEHERE"].Background = Color.Yellow


For c As Integer = 1 to 46

frmPLUList["Btn" & c].Background = Color.Yellow

Next
This one worked a treat thank-you @BruceSteers once again you have come to my rescue.
by AndyGable
Tuesday 12th March 2024 4:10am
Forum: General
Topic: [Sloved] Programmly send Button Name
Replies: 3
Views: 592

[Sloved] Programmly send Button Name

Hi All. I am using 46 btns to make a grid onscreen and I was wondering how do I send the Button name in the following code If PLUDataResult.Count > 0 Then For Each PLUDataResult Global.pluNumber[PLUDataResult!button_number] = PLUDataResult!plulistid Global.pluBarcode[PLUDataResult!button_number] = P...
by AndyGable
Tuesday 12th March 2024 3:24am
Forum: General
Topic: [Solved] How to scroll a Gridview via code
Replies: 2
Views: 749

[Solved] How to scroll a Gridview via code

Hi All, I am having a Slight issue at the moment that I can not figure out how to sort I am trying to scroll a gridview using a up and down arrow on the screen (this is a touch app) This is what I have so far Global.RowCount = 0 This runs when the form opens Public Sub btnUpArrow_Click() If Global.R...
by AndyGable
Friday 1st March 2024 9:56pm
Forum: General
Topic: USB PoS Printer advise
Replies: 7
Views: 1865

Re: USB PoS Printer advise

After a lot of googling and asking ChatGPT I have come up with the following code (Still needs work though) Global.PrinterPort = New SerialPort As "PrinterPort" With Global.PrinterPort Try .Close .PortName = Global.PortName End With Select Case ConnectionType Case "Open" Try Glob...
by AndyGable
Thursday 29th February 2024 6:52pm
Forum: General
Topic: USB PoS Printer advise
Replies: 7
Views: 1865

Re: USB PoS Printer advise

If I used the driver I loose all control Over the printer and I will not get any status about the cash drawer etc from the printer. I found this command online tail -f /var/log/syslog . If you run the command in Terminal, then change the cash draw status, you may be able to see it as it happens. (P...