Search found 1106 matches

by cogier
Sunday 15th November 2020 4:15pm
Forum: General
Topic: Application.Restart=String[] ?
Replies: 3
Views: 2924

Re: Application.Restart=String[] ?

I had a look at this but I can't get it to do anything. I found this quote ..desktop sessions are now supported, the Application.Restart property allows to define the command executed by the session manager to put the application back on the desktop when starting the desktop. I know you will have se...
by cogier
Friday 13th November 2020 4:33pm
Forum: General
Topic: Decode Bit-coded
Replies: 3
Views: 2914

Re: Decode Bit-coded

Is this what you are looking for? TextBoxIn As TextBox GridViewDisplay As GridView Public Sub TextBoxIn_Change() Dim iLoop As Integer Dim sBin As String GridViewDisplay.Clear If Len(Trim(TextBoxIn.Text)) > 3 Then TextBoxIn.Text = Left(TextBoxIn.Text, -1) Try sBin = Bin(TextBoxIn.Text, 7) If Error Th...
by cogier
Tuesday 10th November 2020 4:59pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 406011

Re: Did you know?

Can you think of a good use for Boxed Strings? You mustn't ask me these questions :o. My mind went off and came up with the code below. The use of Boxed String is on Line 13 and here it is very useful. It could be done with a 'Mid' statement but this is more elegant. The code should work without th...
by cogier
Tuesday 10th November 2020 11:05am
Forum: General
Topic: Did you know?
Replies: 91
Views: 406011

Re: Did you know?

Hi Steve. Yes I have used this as well but you have to remember that the first character in a string is 1 when using Len & Mid whereas using this method it is 0. And just to be controversial ;) I would have used 'TextBox2.Text = Split(TextBox1.Text)[1]' in your example and that way the length of...
by cogier
Sunday 8th November 2020 5:13pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 406011

Re: Did you know?

If you would like some text in the background of a TextBox so the user knows what is expected of him/her then use the 'Placeholder' Property. Public Sub Form_Open() Dim TextBox1 As TextBox With Me .h = 45 .W = 220 .Padding = 5 .Arrangement = Arrange.Vertical End With With Textbox1 = New TextBox(Me) ...
by cogier
Sunday 8th November 2020 3:47pm
Forum: Component
Topic: Keystroke Macro Recorder
Replies: 10
Views: 8482

Re: Keystroke Macro Recorder

I got into trouble straight away. I thought I would record a macro (Tools > Macro recorder(Empty) > Start recording). Result below: - https://www.cogier.com/gambas/Macro1.png EDIT Pressing the "Start" button brings up the same error. EDIT I noticed this: - https://www.cogier.com/gambas/Col...
by cogier
Thursday 5th November 2020 4:36pm
Forum: Component
Topic: Keystroke Macro Recorder
Replies: 10
Views: 8482

Re: Keystroke Macro Recorder

Wow! You have been busy. I don't have the answers you requested but I have some suggestions, please feel free to ignore them. 1/. Try adding some 'Padding' (5 to 10) to the FMain Form. 2/. Should the FMain.text = "+"? 3/. In the edit menu is 'Prefrences' when I think you mean 'Preferences'...
by cogier
Tuesday 3rd November 2020 5:37pm
Forum: General
Topic: SendKey codes
Replies: 2
Views: 2371

Re: SendKey codes

I can't find the warning I was looking for, but I am sure it goes something like 'Don't use codes as GTK and QT use different code for the same key'.
by cogier
Tuesday 3rd November 2020 4:58pm
Forum: General
Topic: Gambas 3.15.2 Install - Pop!_OS
Replies: 16
Views: 10732

Re: Gambas 3.15.2 Install - Pop!_OS

Hi tsmvp and welcome to the forum.

1/. Which version of Pop!_OS are you using 20.04 or 20.10?
2/. If you are using 20.04 did you try and install Gambas from the Pop!_OS repository ('Software center' or whatever Pop!_OS calls it?) before using the ppa?
by cogier
Saturday 31st October 2020 2:20pm
Forum: General
Topic: Calling Subs/Funct in other Modules
Replies: 5
Views: 4180

Re: Calling Subs/Funct in other Modules

OK here's the 2nd attempt. Try this: -
If DataBase_Module.Database_Connect(DBCon) = True Then
  ' database connected
Else
    ' Database failure
Endif