I didn't know either, I'm liking this section more and more !!
Search found 57 matches
- Tuesday 17th November 2020 11:22pm
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 415677
Re: Did you know?
- Tuesday 17th November 2020 11:12pm
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 415677
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 or this If sTemp1 Like...
- Tuesday 17th November 2020 11:08pm
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 415677
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! This if i knew it. :D
- Tuesday 17th November 2020 11:02pm
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 415677
Re: Did you know?
great, i didn't know ... until now
Regards
- Tuesday 17th November 2020 10:53pm
- Forum: General
- Topic: Decode Bit-coded
- Replies: 3
- Views: 2962
Re: Decode Bit-coded
Yes !!! exactly.
Before see your code i made this with the help of tercoide.
Martin.
Before see your code i made this with the help of tercoide.
Public Function DWGFlag(iFlag As Integer, iPos As Integer) As Byte
Dim t As String
Dim b As Byte
t = Bin(iFlag, 8)
b = CByte(Mid(t, 9 - iPos, 1))
Return b
End
Regards.Martin.
- Friday 13th November 2020 12:27pm
- Forum: General
- Topic: Decode Bit-coded
- Replies: 3
- Views: 2962
Decode Bit-coded
Hello everyone. I have a collection of numbers that according to the manual of the file I am trying to decode are bit-coded they should be 1, 2, 4, 16, 32, 64 but I get from the file: 1008, 992, 1017. How do I decode the numbers in the second group to make them look like something in the first? See ...
- Monday 2nd November 2020 4:07pm
- Forum: Component
- Topic: I added "shell" to the TextEditor highlight modes :)
- Replies: 5
- Views: 5749
- Monday 2nd November 2020 4:04pm
- Forum: Lounge
- Topic: Add some links to resources section
- Replies: 2
- Views: 4458
Re: Add some links to resources section
Hi,
Thanks for including the links.
I have not entered the forum for a few months, so I just saw this message.
Regards.
Thanks for including the links.
I have not entered the forum for a few months, so I just saw this message.
Regards.
- Sunday 2nd August 2020 1:36pm
- Forum: Lounge
- Topic: Add some links to resources section
- Replies: 2
- Views: 4458
Add some links to resources section
Hi, I want to add some links to the resources section, but trying to login has not worked. How do you get access to leave a comment? Anyway here are the links. Spanish sites Gambas spannish comunity forum. https://gambas-es.org Gambas spannish comunity old forum (read only). https://foro.gambas-es.o...
- Monday 8th June 2020 11:39am
- Forum: Component
- Topic: Component + C library
- Replies: 2
- Views: 4400
Component + C library
Hi everyone, I'm trying to learn how to make a component that uses a C library I just started and I have no idea how to do it. If someone knows how to do it and wants to share it, it will be of great help. On the other hand, if someone knows an existing component that already uses a C library, pleas...