Search found 1115 matches
- Friday 13th November 2020 4:33pm
- Forum: General
- Topic: Decode Bit-coded
- Replies: 3
- Views: 2965
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...
- Tuesday 10th November 2020 4:59pm
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 419846
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...
- Tuesday 10th November 2020 11:05am
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 419846
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...
- Sunday 8th November 2020 5:13pm
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 419846
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) ...
- Sunday 8th November 2020 3:47pm
- Forum: Component
- Topic: Keystroke Macro Recorder
- Replies: 10
- Views: 8889
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...
- Thursday 5th November 2020 4:36pm
- Forum: Component
- Topic: Keystroke Macro Recorder
- Replies: 10
- Views: 8889
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'...
- Tuesday 3rd November 2020 5:37pm
- Forum: General
- Topic: SendKey codes
- Replies: 2
- Views: 2392
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'.
- Tuesday 3rd November 2020 4:58pm
- Forum: General
- Topic: Gambas 3.15.2 Install - Pop!_OS
- Replies: 16
- Views: 10841
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?
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?
- Saturday 31st October 2020 2:20pm
- Forum: General
- Topic: Calling Subs/Funct in other Modules
- Replies: 5
- Views: 4236
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
- Saturday 31st October 2020 1:33pm
- Forum: General
- Topic: Calling Subs/Funct in other Modules
- Replies: 5
- Views: 4236
Re: Calling Subs/Funct in other Modules
Try changing the top lines to: -
' Gambas module file
Public DBCon As New Connection
Public Sub Main()
.......