Search found 57 matches

by tincho
Tuesday 17th November 2020 11:22pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 409611

Re: Did you know?

cogier wrote: Tuesday 26th June 2018 3:02pm Did you know you can easily move a line, or multiple lines, of code up or down in the editor. Just place the cursor on the line, or highlight the lines, you want to move and press [Alt]+[Up Arrow] (or [Down Arrow]). 8-)
I didn't know either, I'm liking this section more and more !!
by tincho
Tuesday 17th November 2020 11:12pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 409611

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...
by tincho
Tuesday 17th November 2020 11:08pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 409611

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
by tincho
Tuesday 17th November 2020 11:02pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 409611

Re: Did you know?

cogier wrote: Saturday 4th February 2017 3:13pm 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?
great, i didn't know ... until now
Regards
by tincho
Tuesday 17th November 2020 10:53pm
Forum: General
Topic: Decode Bit-coded
Replies: 3
Views: 2943

Re: Decode Bit-coded

Yes !!! exactly.
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.
by tincho
Friday 13th November 2020 12:27pm
Forum: General
Topic: Decode Bit-coded
Replies: 3
Views: 2943

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 ...
by tincho
Monday 2nd November 2020 4:04pm
Forum: Lounge
Topic: Add some links to resources section
Replies: 2
Views: 4210

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.
by tincho
Sunday 2nd August 2020 1:36pm
Forum: Lounge
Topic: Add some links to resources section
Replies: 2
Views: 4210

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...
by tincho
Monday 8th June 2020 11:39am
Forum: Component
Topic: Component + C library
Replies: 2
Views: 4324

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...