Search found 51 matches

by rpkelly
Jun 22, 2020 23:56
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.1.0 June 4, 2023)
Replies: 981
Views: 346578

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.7 May 31, 2020)

I've been awol for some time - life considerations took priority. I finally downloaded WinFBE 2.1.7 and gave it a try. I took my cCalendar work and developed a demo. I experienced no issues and smooth development although I only used mostly basic things with tools such as buttons, text boxes, tab an...
by rpkelly
Jun 30, 2018 18:25
Forum: General
Topic: Variable based Restore with Read/Data
Replies: 2
Views: 825

Re: Variable based Restore with Read/Data

fxm wrote:No.
By cons, we can test the string value and restore the next-data-to-read pointer accordingly:
OK, it was a long shot. I was looking at best way for my IANA time zone parser to emit values. I can emit a series of statements that load arrays instead.
by rpkelly
Jun 30, 2018 16:08
Forum: General
Topic: Variable based Restore with Read/Data
Replies: 2
Views: 825

Variable based Restore with Read/Data

Is it possible to use Restore with a variable containing the block name to support random block access to a series of DATA statements? Dim sRead as String Dim sBlock as string sBlock = "Data2" Restore Data2 ' I'd like to use Restore with the data value in variable sBlock Read sRead Print s...
by rpkelly
Jun 29, 2018 5:26
Forum: General
Topic: Useful defines
Replies: 24
Views: 4291

Re: Useful defines

Hi Rick - haven't seen you for a while. Been traveling, tying fishing flies, and of course, fishing. I'll be up in Alaska in Aug chasing those pretty arctic grayling with my son. Now, I'm a bit behind on my FB efforts. We'll get cCalendar done with the addition of an IANA based time zone class and ...
by rpkelly
Jun 29, 2018 1:18
Forum: Projects
Topic: Calendar Calculations Class for Windows
Replies: 8
Views: 2675

Re: Calendar Calculations Class for Windows

The next logical step with the cCalendar class is to add time zone support using the IANA source at https://www.iana.org/time-zones . I'm thinking of having the parser I am working on emit DATA statements that can be pulled into a class via includes. Updates would be just downloading the latest IANA...
by rpkelly
Jun 27, 2018 22:22
Forum: Projects
Topic: Calendar Calculations Class for Windows
Replies: 8
Views: 2675

Re: Calendar Calculations Class for Windows

Thank you, and, I removed the cCalendar folder for the library in the test scripts.
by rpkelly
Jun 27, 2018 2:53
Forum: Projects
Topic: Calendar Calculations Class for Windows
Replies: 8
Views: 2675

Re: Calendar Calculations Class for Windows

Library updated to version 1.10 https://github.com/breacsealgaire/Calendar_Calculations-Freebasic Changes: 1. Added support for Samaritan calendar 2. Higher precisions for astronomical calculations 3. Separation of functions for moonrise and moonset 4. Additional support for Daylight Savings adjustm...
by rpkelly
Jun 26, 2018 23:54
Forum: General
Topic: Useful defines
Replies: 24
Views: 4291

Re: Useful defines

Although not defines, I'll contribute some of my favorite flavors of MOD for real numbers with Ceiling/Floor support. ' ======================================================================================== ' Force modulus x into the range a..b for Real Numbers ' ==================================...
by rpkelly
May 26, 2018 16:54
Forum: General
Topic: A question of efficiency
Replies: 7
Views: 1518

Re: A question of efficiency

I spend most of my time in SQL world and 'CAST' is frequently in my vernacular. I have functions that are common and called by many other functions that accept byval DOUBLE values. I have determined that this class spends about 45% of its time in these common functions and was looking for ways to tw...
by rpkelly
May 26, 2018 4:49
Forum: General
Topic: A question of efficiency
Replies: 7
Views: 1518

A question of efficiency

If I have a function:

myFunc (byval a as double) as double

Is it faster to call myFunc(1.0) vs myFunc(1) and avoid a casting to double?

Rick
by rpkelly
Dec 29, 2017 5:44
Forum: General
Topic: Competition Scheduling
Replies: 0
Views: 1050

Competition Scheduling

I've started gathering various ways of generating a generic pairings schedule for sporting competitions. After Mr Google and I spent some time together, I decided to start with a round robin pairings. My initial rough effort is below. Is there a better way to implement a round robin algorithm? Type ...
by rpkelly
Dec 08, 2017 3:10
Forum: Projects
Topic: Calendar Calculations Class for Windows
Replies: 8
Views: 2675

Re: Calendar Calculations Class for Windows

This is super useful stuff, as well as being an amazing work. Thanks for sharing! You're welcome! I first wrote most of the class with MASM32 in 1997, ported it to Paradox ObjectPal, ported it to Powerbasic, and now this FB version which is the latest incarnation with all the latest calendar stuff ...
by rpkelly
Dec 08, 2017 3:04
Forum: Projects
Topic: Calendar Calculations Class for Windows
Replies: 8
Views: 2675

Re: Calendar Calculations Class for Windows

There were still parameters without an explicit BYVAL/BYREF and there were mixed operands not supported by version 1.05 (fixed in version 1.06) which have been addressed via CLNG. Compiled with 32/64 FB versions 1.05 and 1.06. I also noted I labeled the class as for WIndows. Since I only develop for...
by rpkelly
Dec 05, 2017 5:23
Forum: Projects
Topic: Calendar Calculations Class for Windows
Replies: 8
Views: 2675

Calendar Calculations Class for Windows

Calendar date and time calculations on GitHub at: https://github.com/breacsealgaire/Calendar_Calculations-Freebasic cCalendar_Test_Script3.txt updated to remove lunar illumination function. This function returned inconsistent results using the algorithm from Jean Meeus's book Astronomical Algorithms...
by rpkelly
Jun 07, 2017 0:53
Forum: Community Discussion
Topic: A new section for FreeBasic on The Joyful Programmers forum
Replies: 28
Views: 8186

Re: A new section for FreeBasic on The Joyful Programmers forum

oh, wow, thanks for sharing that. adds keys to associative 1d arrays for all fb variable types. excellent example and encryption too. where is #Include "afx/CWstrDic.inc"? Jose Roca's excellent classes for FB. What's in your wallet? http://www.planetsquires.com/protect/forum/index.php?boa...