createConstant(data,dataName,fileName)

Creates a non-editable importable data object.

create constantcreate constant


Syntax

o_createConstant(data, dataName, fileName)
data: any valid VEE data
dataName: Text - the name assigned to the constant object that is created
fileName: Text - name of the file into which the constant object is placed
return:  none

Usage

This automates the process of creating a secured object containing a data constant.

Location

menu: veeos ==> Data ==> createConstant

library: dataLib

Example

o_createConstant( 8.85418782E-012 , "eps0", "c:/temp/eps0.vxe" ) creates a file containing a single object that in turn contains the value 8.85418782E-012

Once imported this object looks like: eps0. Note that this is read-only.

Notes

This object does NOT create a constant for use within the program calling createConstant() but rather in a file on disk.

Reference

Dependencies

Supported On 

VEE 7.0+, Windows 7+

See Also

setVar


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 03 February 2023 13:04.