Search found 221 matches

by cogier
Saturday 06th May 2017 12:52pm
Forum: General
Topic: Did you know?
Replies: 29
Views: 4429

Re: Did you know?

I knew most of this but I had always selected a variable to find it's value, I didn't know you could double click it as well.
by cogier
Saturday 29th April 2017 10:11am
Forum: General
Topic: gb.sdl2.audio
Replies: 3
Views: 811

Re: gb.sdl2.audio

Thanks guys, I now know about 'Distance' and 'Angle'. The example is just what I am looking for.

Just a warning, don't copy the code while reading the 'Translation' as Google alters the code e.g. 'Case True' becomes 'True Case'
by cogier
Wednesday 26th April 2017 2:33pm
Forum: General
Topic: gb.sdl2.audio
Replies: 3
Views: 811

gb.sdl2.audio

Can anyone tell me how to use Channels, Angles etc using gb.sdl2.audio. The link provided in the help http://www.libsdl.org/projects/SDL_mixer/ does not help much. If there is example that would be nice.
by cogier
Thursday 30th March 2017 12:06pm
Forum: General
Topic: Did you know?
Replies: 29
Views: 4429

Re: Did you know?

You are both correct. It's good to get the different ideas and points of view. Let's stimulate debate!
by cogier
Wednesday 29th March 2017 3:19pm
Forum: General
Topic: Did you know?
Replies: 29
Views: 4429

Re: Did you know?

You can shorten the line: -
If String.Comp(sTemp1, sTemp2, gb.IgnoreCase) = 0 Then Print "yes" Else Print "No"
To: -
If Comp(sTemp1, sTemp2, 1) Then Print "No" Else Print "yes"
Unless you particularly wanted to compare two UTF-8 strings
by cogier
Tuesday 28th March 2017 4:41pm
Forum: General
Topic: Did you know?
Replies: 29
Views: 4429

Re: Did you know?

Here is another find - Try this one: -
Public Sub Form_Open()
Dim sTemp1 As String = "hello"
Dim sTemp2 As String = "HELLO"

If sTemp1 == sTemp2 Then Print "Yes" Else Print "No"

End
The "==" is a non case sensitive comparison.
by cogier
Tuesday 21st March 2017 3:10pm
Forum: General
Topic: Problem with Exec and ">"
Replies: 4
Views: 971

Re: Problem with Exec and ">"

Thanks Didier, it was me who added the 'Example' to the Shell$ help file!
by cogier
Tuesday 21st March 2017 8:39am
Forum: General
Topic: Problem with Exec and ">"
Replies: 4
Views: 971

Re: Problem with Exec and ">"

The redirect '>' is a terminal command. It can only be used with Shell. When you use Exec there is no terminal so '>' has no meaning. The Pipe '|' command is another example.
by cogier
Thursday 16th March 2017 3:28pm
Forum: General
Topic: Did you know?
Replies: 29
Views: 4429

Re: Did you know?

I have found another little gem I thought I would pass on (even though you know it already!)

Open preferences [Ctrl]+[Alt]+P and switch on Local variable automatic declaration then in your empty 'Sub' type iCount = 6 and hey presto a Dim iCount as Integer automatically appears!
by cogier
Sunday 12th March 2017 4:11pm
Forum: General
Topic: Starting items
Replies: 8
Views: 1231

Re: Starting items

UPDATE: Form_Show() only shows the form immediately with gb.gui Form_Arrange() does not show the form until the the routine has finished Form_Open() does not show the form until the the routine has finished Form_Active() shows the form immediately with gb.gui and gb.qt4 You need one Label on a form ...