ComputerWizard CDF Libraries:
Wizard Utilities Library #1

Back to Downloads Main Page | Back to the ComputerWizard’s Home Page


ComputerWizard Consulting also creates Custom Defined Function (CDF) libraries for use with DataEase for DOS and DataEase for Windows. CDF libraries can contain one or more special-purpose functions that extend the capabilities of DataEase beyond those provided by Sapphire.

Wizard Utilities CDF Library #1
File Name: WizUtil1-32.zip
Size: 714 Kbytes
Date: Version 2.1a
28-Sep-2004

Now compiled with Delphi 7.x.
Minor changes to the progress meter and message box functions.
Bug fix in the date formatting functions for people who don't use “/” (slash) as the date separator.

Type: DonationWare, $US/$CDN 25.00

This library is a collection of 29 useful utilities in five categories:

Category

Functions

Mathematical Functions 3
Check Digit Functions 6
Progress Bar Functions 3
Message Box (no buttons) Functions 3
Date Functions 14

Download the file to a temporary directory, unzip it, and read the manuals for instructions on installing and using the library. The zip file also contains a zipped sample application demonstrating the functions (the user name is “user” and the password is “user”).

If you are upgrading from the 16-bit version:
When used with negative numbers, the rounding functions may return different values than with the 16-bit version; we strongly suggest that you look at the manual and test your application.

The library file name has changed to WizUtil132.dll to avoid confusion in case you are still running some DfW 5.5 applications; if you migrate/convert a 16-bit application using the 16-bit version of WizUtil1.dll, you'll have to change the library name in the Custom Functions table.

What functions are in the library?

FUNCTION LIST
Function Name What It Does
Mathematical Functions
wizInt() Returns the integer portion of a floating point number.
wizRoundTo() Rounds a given value to a given precision.
wizRoundMultiple() Rounds a number up or down to the closest multiple.
Check Digit Functions
wizCalc_CC_CD() Calculates mod-10 check digit.
wizVerify_CCard() Verifies a mod-10 check digit.
wizCalc_UPC_CD() Calculates a mod-10 check digit, Universal Product Code formula.
wizVerify_UPC() Verifies a mod-10 UPC formula.
wizVerify_ISBN() Verifies a book’s ISBN.
wizGetCCardType() Retrieves a credit card type (VISA, MasterCard, etc) from the card’s prefix and checks to see if the length (number of digits) is valid for that card type.
Progress Bar Functions
wizInitProgressBar() Creates a Progress Bar/Completion Gauge.
wizUpdateProgressBar() Updates the Progress Bar as a process continues.
wizKillProgBar() Removes the Progress Bar.
Message Box (no buttons) Functions
wizInitMsgBoxNoBtn() Creates the Message Box.
wizUpdateMsgBoxNB() Updates the Message Box.
wizKillMsgBoxNoBtn() Removes the Message Box from the display.
Date Functions
wizMediumDateStd() Formats a date in the Windows “Medium” format with a two digit year.
wizMediumDateExt() Formats a date in the Windows “Medium” format with a four digit year.
wizIsLeapYear() Checks if the supplied four-digit year a Leap Year or not.
wizFirstXDayDate() What’s the date of the first Tuesday of November, 1999? Use this function to find out!
wizPriorXDayDate() Given a date, finds the XDay (e.g, the Monday) prior to it; you select what day of week to locate.
wizNextXDayDate() Given a date, finds the XDay (e.g, the Monday) following it; you select the day of week to locate.
wizNearestXDayDate() Given a date, finds the nearest XDay (e.g, the Monday) prior or following it; you select the day of week to locate.
wizWeekNumber() Calculates the week number of the year for a given date, for a given “starting” Day of Week (different from the built-inWeekNumber() function.). This function counts weeks from the first complete week in the calendar year that starts with “your” day of week.
wizWeekNumberDate() Calculates the date of the first day of the given week number, for a given “starting” Day of Week. Weeks are counted starting from the first complete week of the calendar year that starts with “your” day of week.
wizWeekNumberByYear() Calculates the week number of the year for a given date, for a given “starting” Day of Week. This function finds the first week in which:
  • Your week starts
  • Includes January 1st

See the manual for more details.

wizWeekNumberDateByYear() Calculates the date of the first day of the given week number, for a given “starting” Day of Week. Weeks are counted starting from the first week of the calendar year that starts with “your” day of week and includes January 1st..
wizParseDateStd() Formats a date string from external sources into a format that DataEase can recognize as a date, e.g., given 1/1/99, the function returns 01/01/99.
wizParseDateExt() Formats a date string from external sources into a format that DataEase can recognize as a date, e.g., given 1/1/1999, the function returns 01/01/1999.
wizJulian() Creates an “extended date” Julian date, e.g. one formatted as YYYYDDD, where YYYY is the year and DDD is the day in the year. The DDD portion is zero-padded.
 
Separator Line
Home | Staff | Clients | Products | Downloads | Technical | Site Map
Black Separator Line (994 bytes)

Please send your comments, questions and complaints to the Web Development Department
Copyright © 2002–2005 ComputerWizard Consulting. All rights reserved.
DataEase, DataEase for DOS, DataEase for Windows, DEDOS, DfW, DataEase 6, DataEase 6.x, ComputerWizard, ComputerWizard Consulting, DataEase Consultant, DataEase Consulting, DataEase Distributor, Canadian DataEase distributor, DataEase in Canada, DataEase distributor in Canada, DataEase Canada, DataEase Canada, ComputerLinks, dataease.com, DQL, CDF, CDF Library, CDF Libraries