home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
FOXPRO
/
FCT1_12
/
FC_ARRAY.HDR
< prev
next >
Wrap
Text File
|
1990-11-28
|
2KB
|
65 lines
#output Force Tools 1.1 - Array / Sort functions
*--- initialize a dynamic array, returns a handle
function int array_init prototype
params value byte array_type, value long max_elements
*--- array types
#define logi_array 0
#define byte_array 1
#define word_array 2
#define long_array 3
#define date_array 4
#define real_array 5
*--- clear an array from memory
procedure array_clear prototype
params value int arr_hdl
*--- put an element to an array
procedure array_put prototype
params value int arr_hdl, value long arr_ele, untyped var_ptr
*--- retrieve an element from an array
procedure array_get prototype
params value int arr_hdl, value long arr_ele, untyped var_ptr
*--- insert an element into an array
procedure array_ins prototype
params value int arr_hdl, value long arr_ele, untyped var_ptr
*--- delete an element from an array
procedure array_del prototype
params value int arr_hdl, value long arr_ele
*--- return the number of elements in an array
function long array_len prototype
params value int arr_hdl
*--- return the maximun number of elements in an array
function long array_max prototype
params value int arr_hdl
*--- retrieve the type of an array
function byte array_type prototype
params value int arr_hdl
************************************************
* Achoice(Top Row, Top Col, Bottom Row, Bottom Col, Array choices,
* array allowed, udf, initital item, initial row, len array choices)
*
* Simulate clipper's achoice function.
*
* Para 1 - 4 : Top, left, bottom and right window coordinates
* Para 2 : Array of characters strings to display as menu
* Para 3 : Parralel array determing the avaibility
* Para 4 : Name of the Udf to call without quotes
* Para 5 : Initial item to start with
* Para 6 : Initial row to start with (IGNORED use initial item)
* Para 7 : Len of array of choice
*
FUNCTION UINT Achoice PROTOTYPE
PARAMS VALUE UINT, VALUE UINT, VALUE UINT, VALUE UINT, CHAR(77) Array_1[0],;
LOGICAL Array_2[0], UNTYPED, VALUE UINT, VALUE UINT, VALUE UINT
* eof - fc_array.hdr