Search found 1117 matches

by cogier
Monday 13th February 2017 6:36pm
Forum: General
Topic: gb.args - alternate form of usage.
Replies: 8
Views: 11587

Re: gb.args - alternate form of usage.

@cogier: if you want to convert an array to a string, you can always use .Join. No need to use a loop :) Thanks jornmo for that. I also noticed: - Dim arrParams As String[] Dim strParam As String arrParams = Args.All could have been simplified with Dim arrParams As String[] = Args.All Dim strParam ...
by cogier
Saturday 11th February 2017 11:39am
Forum: General
Topic: gb.args - alternate form of usage.
Replies: 8
Views: 11587

Re: gb.args - alternate form of usage.

I have looked at your code in your first post and if you need all the options then the code you have written looks good to me. To reduce the amount of code you could put all the 'Args' into a single string and use InStr() to look in the string for the 'Arg'. This method would catch '--version' or '-...
by cogier
Saturday 4th February 2017 3:13pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 423465

Re: Did you know?

I have discovered another short cut I didn't know about.

If you hold down the [Ctrl] key and click on a Gambas reserved word (e.g. Public, New, For, etc) the relevant help page is displayed.

But you all knew that didn't you?
by cogier
Wednesday 1st February 2017 4:25pm
Forum: Lounge
Topic: You are welcome
Replies: 13
Views: 22074

Re: You are welcome

Hi casperl, Welcome to the site. I also started out with the not so trusty ZX81 with the wobbly 16k RAM pack and the 5 minutes it took to, sometimes, load your program from cassette! Like you I have had some issues due to the lack of Gambas documentation but find there is nothing else out there that...
by cogier
Saturday 21st January 2017 9:49am
Forum: General
Topic: Did you know?
Replies: 91
Views: 423465

Re: Did you know?

Can you give me an example of a 'Constructor' as the information out there is way beyond me!
by cogier
Tuesday 17th January 2017 3:30pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 423465

Re: Did you know?

I knew most of these but for variables I use: -
ds [Tab]
df [Tab]
di [Tab]

[Ctrl] + [Alt] + [Enter] from here http://gambas.8142.n7.nabble.com/Questi ... 58228.html is also interesting.

When do you use '_n'?
by cogier
Sunday 15th January 2017 1:40pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 423465

Did you know?

I must have typed 'Open_Form' quite a few times to complete the 'Public Sub Form_Open()', then I discovered that this can be automatically created by double clicking the Form.

I suspect you all knew this but I thought I would share this anyway.
by cogier
Tuesday 20th December 2016 10:08am
Forum: General
Topic: Gambas for Puppy-Linux
Replies: 19
Views: 33753

Re: Gambas for Puppy-Linux

Hi didiier18 and welcome to the site.

Please feel free to post your tutorial. If you are familiar with Wordpress let us know and we can let you have access.

I just wondered, if you use the 'Ubuntu' version of Puppy Linux can you not use the Gambas ppa?
by cogier
Monday 28th November 2016 5:45pm
Forum: General
Topic: Reading a USB stream from a DYMO M10 scales
Replies: 17
Views: 24875

Re: Reading a hiddev stream

OK I have got a result. I have not been able to avoid the need for root permissions and as I don't have your scales so I experimented with a USB bar-code gun. I use Linux Mint which is based on the Ubuntu family so there may be other issues to deal with. I have used 'gksu' to get root access. The ou...
by cogier
Monday 28th November 2016 12:56pm
Forum: General
Topic: Reading a USB stream from a DYMO M10 scales
Replies: 17
Views: 24875

Re: Reading a hiddev stream

I am interested in reading a USB port and have tried various ideas but I'd like to know which Distro you are using. Ialso need to sort out closing a process, see another post.