Skip to main content

Download Conversions

Downloads DataFlex Conversions
Back to overview

Conversions

Description

Many developers need to have functions to convert from one unit to another. We created a library that contains a number of classes and in each of the classes you will find the functions to convert. You will find functions to convert from Celcius to Fahrenheit and vice versa but also functions to convert from Ounces to Grams, from Gallons to Liters, from Meters to Yards, from Decimal to Hexadecimal or Octal.

Classes

The library contains the following classes:

  • cAbsoluteViscosityHandler
  • cAngleHandler
  • cArrayHandler (Removed in v19.0)
  • cBitHandler
  • cEnergyHandler
  • cHexHandler
  • cKinematicViscosityHandler
  • cLengthHandler
  • cOctHandler
  • cPowerHandler
  • cPressureHandler
  • cTemperatureHandler
  • cTimeHandler
  • cVelocityHandler
  • cVolumeHandler
  • cWeightHandler

Usage

The usage is as follows:

  • Create an object of the class that contains the function
  • Call the function in the object
  • If you want delete the object

Example code


Get Create (RefClass (cHexHandler)) To hoHexHandler
Get IsHex Of hoHexHandler "0D0A" To bIsHex
Send Destroy Of hoHexHandler

Or


Object oTemperatureConvertor Is A cTemperatureHandler
End_Object
Get CelciusToFahrenheit Of oTemperatureConvertor 14.5 To nFahrenheit

 

Features

  • Convert values from one unit to another unit
  • Easier to use than find out the correct constant for the calculation yourself

Screenshots

Conversions demo
Publisher: Data Access Worldwide Version: 20.1 Publication: 29/01/2020 File size: 5.4MB

Support

For support go to:

Readme

Prior versions

To be used with DataFlex 20.0 workspaces

Changes

  • First build for DataFlex 2021
  • Precision changes in cLengthHandler class compared to v19.1
  • Side-by-side installer
  • Fixed a problem with IDs from a old installer

To be used with DataFlex 19.1 workspaces 

Changes

  • In demo workspace the manifest file is moved/copied to AppSrc
  • In demo workspace the conversions.cfg has been updated to embed manifest files

To be used with DataFlex 19.0 workspaces

 

Changes

  • cArrayhandler removed (functionality in DataFlex itself)
  • Demo / test application added
  • New installer
  • cTemperatureHandler class extended with RankineToFahrenheit and KelvinToCelcius
  • cAngleHandler updated (convert function renamed to ConvertAngle)
  • Removed double functions from cLengthHandler
  • Fixed compiler failure in cVolumeHandler

 

To be used with DataFlex 18.2 workspaces

To be used with DataFlex 18.1 workspaces

To be used in DataFlex 18.0 workspaces

To be used in DataFlex 17.0 workspaces

Changes

  • Added cTimeHandler class

The conversions library is a DataFlex Library that you can attach to a workspace of your own choice.

The library contains the following classes:

  • cAbsoluteViscosityHandler
  • cArrayHandler
  • cBitHandler
  • cEnergyHandler
  • cHexHandler
  • cKinematicViscosityHandler
  • cLengthHandler
  • cOctHandler
  • cPowerHandler
  • cPressureHandler
  • cTemperatureHandler
  • cVelocityHandler
  • cVolumeHandler
  • cWeightHandler

For usage, connect the library, instantiate an object of the desired class, call the method within the object. So:


Get Create U_cHexHandler To hoHexHandler
Get IsHex Of hoHexHandler "0D0A" To bIsHex
Send Destroy Of hoHexHandler


Or


Object oTemperatureConvertor Is A cTemperatureHandler
End_Object

Get CelciusToFahrenheit Of oTemperatureConvertor 14.5 To nFahrenheit


The library has been developed for DataFlex 16.1.

The conversions library is a DataFlex Library that you can attach to a workspace of your own choice.

The library contains the following classes:

  • cAbsoluteViscosityHandler
  • cArrayHandler
  • cBitHandler
  • cEnergyHandler
  • cHexHandler
  • cKinematicViscosityHandler
  • cLengthHandler
  • cOctHandler
  • cPowerHandler
  • cPressureHandler
  • cTemperatureHandler
  • cVelocityHandler
  • cVolumeHandler
  • cWeightHandler

For usage, connect the library, instantiate an object of the desired class, call the method within the object. So:


Get Create U_cHexHandler To hoHexHandler
Get IsHex Of hoHexHandler "0D0A" To bIsHex
Send Destroy Of hoHexHandler


Or


Object oTemperatureConvertor Is A cTemperatureHandler
End_Object

Get CelciusToFahrenheit Of oTemperatureConvertor 14.5 To nFahrenheit


The library has been developed for DataFlex 16.0.

New is a cBitHandler class contributed by Todd Forsberg.

See older versions

Beta

Pre-releases

Quotes

FAQ