Search found 156 matches
- Tuesday 9th April 2019 12:04pm
- Forum: General
- Topic: Using GOSUB
- Replies: 4
- Views: 5979
Re: Using GOSUB
I love GOSUBS. They make BASIC better than any other language. Java used to have them in the byte codes, but never implementtted and now deprecated. Gosubs are local within a routine, just like with VB. '===================================' Sub This() blah blah GoSub A blah Return '-----------------...
- Saturday 6th April 2019 8:40pm
- Forum: General
- Topic: Hello and OOP in Gambas
- Replies: 2
- Views: 3987
Re: Hello and OOP in Gambas
Hello, If you liked VB then you are going to like Gambas even better. Here is a link you want to keep handy. http://gambaswiki.org/wiki The top section titled "Language Reference", especially the topics down the left column, is where you want to spend your early attention. The object model...
- Friday 5th April 2019 2:50pm
- Forum: General
- Topic: Public Variable Declaration
- Replies: 4
- Views: 5936
Re: Public Variable Declaration
Yes, but you can also use the following form (In more recent versions of Gambas): For x As Integer = 1 To 10 Print x Next Though my preference is to Dim them separately. I did not realize you can't use a class level variable for an iterator, so I just learned something new. Side note: The meaning of...
- Sunday 31st March 2019 6:08pm
- Forum: General
- Topic: Shared Library: FFTW Wrapper
- Replies: 0
- Views: 6937
Shared Library: FFTW Wrapper
FFTW.zip This is a shared library test project which will compile and run the included shared library libGambas_FFTW.so. If you have the directory setup as describe in my "Auto-Compiling Shared Libraries" post, simply download the the zip file into the libGambas directory and unzip it the...
- Saturday 30th March 2019 4:35pm
- Forum: General
- Topic: Auto-Compiling Shared Libraries
- Replies: 0
- Views: 6698
Auto-Compiling Shared Libraries
libGambas.zip One of the nice features of Gambas is the ability to use external shared libraries (.so) files in Linux. Not only does this allow you to expand the functionality of Gambas by employing existing libraries, but you can also write your own. A primary motivation for doing this would be an...
- Sunday 24th March 2019 5:55pm
- Forum: General
- Topic: The True True
- Replies: 1
- Views: 3341
Re: The True True
https://en.wikipedia.org/wiki/Visual_Basic In the "Characteristics" section: * Boolean constant True has numeric value −1.[21] This is because the Boolean data type is stored as a two's complement signed integer. In this construct −1 evaluates to all-1s in binary (the Boolean value True),...
- Thursday 21st March 2019 12:34pm
- Forum: General
- Topic: Project name Title name, hidden files = confusing
- Replies: 8
- Views: 9363
Re: Project name Title name, hidden files = confusing
I don't want to say too much about it, because I've only dabbled in it a few times. Here is a search suggestion: "linux assembly language programming gas intel syntax" https://en.wikipedia.org/wiki/X86_assembly_language You should be able to port your code without too many modifications. G...
- Wednesday 20th March 2019 4:36pm
- Forum: General
- Topic: Project name Title name, hidden files = confusing
- Replies: 8
- Views: 9363
Re: Project name Title name, hidden files = confusing
Following weeks, I'm going to learn/test all concerning the Gambas syntax. Actually, that is an ambitious goal. I've been at it for a bit over a month, heavily, and still learning new stuff. It is a very rich environment. The only thing I have found missing (is that an oxymoron?) so far that some p...
- Monday 18th March 2019 1:27am
- Forum: General
- Topic: Calling FORTRAN Shared Libraries from Gambas
- Replies: 1
- Views: 3331
Re: Calling FORTRAN Shared Libraries from Gambas
After a little digging around, I found out that FORTRAN wants its Booleans as a 4 byte Integer with values restricted to 0 and 1. I smell some C. Anyway, I have updated the code to reflect this, made the subroutines modify the calling arguments, and have the Gambas program print the results. The upd...
- Sunday 17th March 2019 7:21pm
- Forum: General
- Topic: Useful Links Code
- Replies: 6
- Views: 7220
Re: Useful Links Code
I learned "File.Load", "array.Max", and "Odd()" from this. Thanks.