Projects, individual procedures and useful lines of code in PowerBASIC
version 10. And some ancillary notes. If you don't have PowerBASIC it should
not be too hard to translate the functionality (command-by-command is often
non‑optimal). In some cases I have included a compiled DLL, making it
out-of-box usable in older PowerBASICs and other lanuages. Items below are
considered complete if preceded by a date (ISO basic format) in brown.
Works In Progress Some works in progress, not
completed code. An incomplete project may contain useful completed
procedures. They will be here in sub-lists. This is also a form of off-site
backup for both complete and uncompleted code. A seggestion may help me "loosen
up" a stalled project.
- (stalled) DY
HTML Edit Create and edit web page files, CSS (Cascading Style
Sheet) files or embedded in HTML CSS, and Javascript files or embedded in HTML
files. The editor I have been using does not handle non-ANSI characters.
Characters with code points 128 to 255 are correctly saved as two byte UTF-8,
but those above are changed to a similar ASCII character or a question mark (?).
This editor work internally in 2 byte UTF-16, then saves as a true UTF-8 file.
- (just extremely slow) VLU Arithmetic. "VLU" ia an acronym for "Very Large
Unsigned" number. The numbers are arrays of 16 bit base 65536 digits. Larger base
reduces the number of operations to do a calculation. The limit is accessable
memory.
- Addition.
- (Subtraction, code but no page)
- (Multiplication, code but no page)
-
(Division, "filler page" no code in page)(( A "bear" to figure out. HELP!!))
-
Square Root , page with notes and a bit pseudo code( A double "bear" to figure out.))
- 20211224
Compare. Is the second VLU greater than, less than or equal to the first
VLU.
- 20211221
Trim. Remove
any leading zero VLU digits from array.
- (stalled)
bBaseW My update of xBase database. "b" for binary numbers, numbers
as character numeric field types kept. The "W" is UTF-16 text field type added.
Miscellaneous Complete procedures (SUBs or FUNCTIONs),
code lines or fragments to use in a project.
- 20240907 Faster leap year algorithm,
and discussion about why others are slower.
- 20240609 W3 Foreground/background
contrast ratio calculation.
- 20230908 Listbox with "sunken" appearance.
- 20230313 High resolution interval counter. Use
like PB TIX with one programmer provided Quad, with better stability.
- 20230314 High resolution timestamp. Maintains
sequence of close spaced time stamps.
- 20230612 Fixed (mono-spaced) Font Messagebox
Intended for compiling and use with PowerBASIC Console compiler. Will work with
PowerBASIC For Windows. A compiled DLL is available for users of older PB
versions and other languages.
- 20250412 Endian Swap
Convert numeric types to/from most significant byte left (big endian) and most
significant byte right (little endian).
- 20250512 App shows HTML in default browser.
- 20250518
Error Codes
include of error code constants based on PowerBASIC 8 bit and/or Windows' 32
bit codes (Windows' "user assigned code" bit as needed).
Never really
finished. If I need to trap an error that I didn't before, a code will be
added (existing codes not changed). Additional error code
suggestions/requests will be considered.
Ancillary Info
License
Text and images on pages within this section of this web site are Copyright
© as of the "last edit" date on that page by Dale Yarker unless noted otherwise
on that page, or as noted next.
Program source code, compiled versions and accompanying resources (e.g.
icons, images) specifically provided for download and/or discussed on these
pages as part of the program are Full Copyleft(ↄ) † by Dale Yarker as of the
"last edit" date on the page. You may copy, modify, insert in other code and/or
distribute it. You may not claim original authorship.
Back Matter
† - "Full copyleft exists when all parts of a work (except the license
itself) may only be modified and distributed under the terms of the work's
copyleft license." From: en.wikipedia.org/wiki/Copyleft
https://en.wikipedia.org/wiki/Software_license
Green links (URL anchors) go to other pages in this domain (reletive).
Red links are to pages on other domains (absolute).
Other color links mean I missed including the CSS for reletive or absolute.
Created on 25 August 2021, last edit 15 Jun 2025