Search found 1561 matches

by BruceSteers
Saturday 3rd July 2021 12:08am
Forum: General
Topic: Help Converting From VB.net to Gambas
Replies: 12
Views: 8694

Re: Help Converting From VB.net to Gambas

no your error is in passing the credentials. have you tried setting Request.Password and Request.User ? (maybe before setting URL?) also there is simply using HttpClient.Download ( URL As String , Headers As String[] ) As String also .Headers is String[] should be in angle brackets even if only one ...
by BruceSteers
Wednesday 30th June 2021 9:15pm
Forum: General
Topic: Help Converting From VB.net to Gambas
Replies: 12
Views: 8694

Re: Help Converting From VB.net to Gambas

If Global.TerminalIDNumber is not a string you must use Str(Global.TerminalIDNumber)
by BruceSteers
Wednesday 30th June 2021 7:40pm
Forum: General
Topic: Help Converting From VB.net to Gambas
Replies: 12
Views: 8694

Re: Help Converting From VB.net to Gambas

Try something like ... Dim Request As New HttpClient Request.URL = Global.PS_URL & "/terminals/" & Global.TerminalIDNumber I tried that and now I am getting Null object (PSConnect:14) on the Request.URL line but the URL is being made correclty (https://**.*.*.paymentsense.cloud/*/...
by BruceSteers
Tuesday 29th June 2021 10:15pm
Forum: General
Topic: Picture slide show
Replies: 7
Views: 3881

Re: Picture slide show

Should be simple. Something like.. Add a PictureBox called PictureBox1 and a timer called PictureTimer... Public ListPos As Integer Public dirList As String[] Public Sub startshow(Folder As String) ListPos = 0 dirList = [] Dim files as String[] = Dir(Folder) For Each s As String In files Dim ext As ...
by BruceSteers
Tuesday 29th June 2021 9:15am
Forum: General
Topic: app from terminal or gui? [SOLVED]
Replies: 3
Views: 2444

Re: app from terminal or gui?

Many Thanks to Tobias Boege on the Gambas m/l for this reply... If anyone else want's the answer to the question..... File.In.IsTerm is true if and only if the standard input of your program is connected to a (pseudo) terminal. This will be the case when you launch the program in a terminal emulator...
by BruceSteers
Tuesday 29th June 2021 8:19am
Forum: General
Topic: app from terminal or gui? [SOLVED]
Replies: 3
Views: 2444

Re: app from terminal or gui?

MAYBE something like so: Try Debug Me.h If Not Error Then Debug "GUI Programm ..." Else Debug "Konsolenprogramm ..." Cheers, but alas that's no good. The application starts from a startup class not a form so none of the usual Me. things exist. also if no args it loads it's gui o...
by BruceSteers
Monday 28th June 2021 11:26pm
Forum: General
Topic: Help Converting From VB.net to Gambas
Replies: 12
Views: 8694

Re: Help Converting From VB.net to Gambas

Try something like ...

Dim Request As New HttpClient
Request.URL = Global.PS_URL & "/terminals/" & Global.TerminalIDNumber
by BruceSteers
Monday 28th June 2021 6:33pm
Forum: General
Topic: app from terminal or gui? [SOLVED]
Replies: 3
Views: 2444

app from terminal or gui? [SOLVED]

Does anyone know if there is a sure fire way of telling if an app has been launched via terminal or gui? basically i ned to provide shell output to the user and the app could be launched from terminal or desktop drag n drop (or other methods that may not have a terminal) So my plan is to output to s...
by BruceSteers
Sunday 20th June 2021 6:25pm
Forum: Lounge
Topic: We've got help searching :) (offline help only)
Replies: 4
Views: 9871

Re: We've got help searching :) (offline help only)

bruce, you know i appreciate you very much but your comment is *censored*,as well as*censored* and furthermore it is miles below your mental abilities ... 1. in my opinion it is massively schizophrenic to put a website online and then expect nobody to use it ... 2. i wish for 6 correct numbers in t...
by BruceSteers
Sunday 20th June 2021 8:33am
Forum: Lounge
Topic: We've got help searching :) (offline help only)
Replies: 4
Views: 9871

Re: We've got help searching :) (offline help only)

I dunno , i kinda thought the tools (i think more than one was being made) were a bit insensitive to Bens requests. That's why i never used any of them. He was clear that the wiki server costs money and searching used bandwidth so that was why he made it so only registered users could search. To mak...