Search found 25 matches

by dmontaine
Mar 11, 2025 23:09
Forum: Linux
Topic: Distros with Free Basic?
Replies: 4
Views: 1678

Distros with Free Basic?

Are there any Linux distros that include Free Basic in their repositories in 2025?
by dmontaine
Jan 04, 2025 1:42
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 1017
Views: 219500

Re: VisualFBEditor - IDE for FreeBasic

There are several download and compile scripts for Windows and also for Linux that are provided in the download. I would appreciate a short installation document with the recommended steps for installation on Windows and Linux. Also, perhaps a clean-up script that would get rid of anything not neede...
by dmontaine
Sep 01, 2023 15:13
Forum: Community Discussion
Topic: Header files license ?
Replies: 5
Views: 2469

Re: Header files license ?

I guess the argument would be that these files are used by the the generated application, which can be any appropriate license, including commercial. They are not a part of the compiler itself which is GPL and taints everything linked to it. Also, given that the Oracle vs Google decision (as this no...
by dmontaine
Aug 26, 2023 0:50
Forum: Community Discussion
Topic: Header files license ?
Replies: 5
Views: 2469

Header files license ?

The header files supplied with fbc do not have a specific license included, however they do have this notice NOTICE: This file is part of the FreeBASIC Compiler package and can't be included in other distributions without authorization This would seem to conflict with both the GPL and the LGPL. So, ...
by dmontaine
Aug 19, 2022 4:43
Forum: Sources, Examples, Tips and Tricks
Topic: Windows Console - Extended Input Subroutine
Replies: 9
Views: 2457

Re: Windows Console - Extended Input Subroutine

[2022 Aug 18] Here is an enhanced version of the extended input routine along with a test program. Added are: Several more key code captures including next word (CntlRightArrow) and previous word (CntlLeftArrow) capabilities. Ctrl+Delete to clear the whole field Insert key toggle to insert or overwr...
by dmontaine
Jul 28, 2022 21:02
Forum: Sources, Examples, Tips and Tricks
Topic: String Function replace() - Replace all occurrences of one character with another
Replies: 17
Views: 2470

Re: String Function replace() - Replace all occurrences of one character with another

@deltarho Thanks for posting the link to Paul Squires string routines. When I did a search, I did not find that posting. One nice thing about posting routines, even if similar ones have been posted in the past, is that it refreshes the current listings, and someone will always point out where relate...
by dmontaine
Jul 28, 2022 20:56
Forum: Sources, Examples, Tips and Tricks
Topic: String Function replace() - Replace all occurrences of one character with another
Replies: 17
Views: 2470

Re: String Function replace() - Replace all occurrences of one character with another

That is why I love posting routines, even if not perfect. Often end up getting something back that is even better even better.
by dmontaine
Jul 20, 2022 13:14
Forum: Sources, Examples, Tips and Tricks
Topic: String Function findnext() - find the first location of a character after a location
Replies: 2
Views: 644

Re: String Function findnext() - find the first location of a character after a location

Thanks everyone. I appreciate all the feedback. I am a retired, now hobbyist, formally professional programmer (using a different language). I haven't worked with Freebasic much, so posting these little bits of code is really helping me learn more about the language and it's capabilities.. I really ...
by dmontaine
Jul 20, 2022 3:56
Forum: Sources, Examples, Tips and Tricks
Topic: String Function findnext() - find the first location of a character after a location
Replies: 2
Views: 644

String Function findnext() - find the first location of a character after a location

This is an example program for a findnext() function. It would be normally used after the find() function uploaded previously. For example, if you have a CSV (comma separated values) string and you want to retrieve the data between two commas, you could get the location of the first delimiter and th...
by dmontaine
Jul 19, 2022 23:26
Forum: Sources, Examples, Tips and Tricks
Topic: String Function find() - Find the location of the nth instance of a character in a string
Replies: 2
Views: 639

String Function find() - Find the location of the nth instance of a character in a string

Some additional modifications to the code of the previously uploaded count() function and we can return the location of the nth instance of a character in a string. 'Program: FindFunctionExample ' Find() finds the nth occurence of a character in a string ' and returns the location '=================...
by dmontaine
Jul 19, 2022 22:25
Forum: Sources, Examples, Tips and Tricks
Topic: String Function count() - Count all instances of a character in a string
Replies: 3
Views: 1044

String Function count() - Count all instances of a character in a string

Slight modification of previously posted replace() function results in a new function count(). Useful if you need to find out how many delimited sub-strings are in a string. The number of sub-strings will be count()+1. 'Program: CountFunctionExample ' This program demonstrates a count() function ' c...
by dmontaine
Jul 19, 2022 14:54
Forum: Sources, Examples, Tips and Tricks
Topic: String Function replace() - Replace all occurrences of one character with another
Replies: 17
Views: 2470

Re: String Function - Replace all occurrences of one character with another

In the responses, the for statement had a -1 added to the end. Both the original code and the changed code work. What I don't understand is why. Just looking at it, it seems that the last character in the string should never be accessed as len(SearhString) returns the proper length of the string. fo...
by dmontaine
Jul 18, 2022 22:12
Forum: Sources, Examples, Tips and Tricks
Topic: String Function replace() - Replace all occurrences of one character with another
Replies: 17
Views: 2470

Re: String Function - Replace all occurrences of one character with another

Here is the modified test program implementing most of the suggestions made. Thank you. The only suggestion I didn't include was passing variables by reference. I avoid global variables and byref parameters because they decrease encapsulation. Just my own personal coding fetish. 'Program: ReplaceFun...
by dmontaine
Jul 17, 2022 22:16
Forum: Sources, Examples, Tips and Tricks
Topic: String Function replace() - Replace all occurrences of one character with another
Replies: 17
Views: 2470

String Function replace() - Replace all occurrences of one character with another

String function replace() with example program 'Program: ReplaceFunctionExample ' This program shows how the included 'replace' function ' converts all instances of one character in a string to another '================================================== ' replace function '==========================...
by dmontaine
Jul 15, 2022 17:19
Forum: Sources, Examples, Tips and Tricks
Topic: Windows Console - Area Fill Subroutine
Replies: 0
Views: 2937

Windows Console - Area Fill Subroutine

This program, box, contains the subroutine FillArea. You can specify either spaces or one of three different fill characters, and choose the location, size and color of the fill. The program uses the US English keyboard codes with the Consolas font. Users may need to modify it for other languages an...