Hi All
Does anyone know the difference between "hiCreate....Field" and "ahiCreate.....Field".
When I look at some codes for special functions provided by Andrew Beckett, I notice that "ahiCreate....Field" functions has been used for creating the form for the special function.
Unfortunately, I did not find any document for this function family.
I also look at all the defined functions in Virtuoso, it's almost one to one between "hiCreate.....Field" and "ahiCreate.....Field".
One thing I notice that, I only defined "string" type of field (code is shown below, follow the code from Andrew), but the content can convert to "integer" or "double" type automatically.
when the value of the field has been evaluated, and used to generate the string by calSpecialFunctionInput('func '(fControlWave fOperator fThreshold fOffValue))
Best Regards
Yi
procedure(SIScreateCalcWaveAndForm()
let((
fControlWave
fOffValue
fOperator
fThreshold
);local varialble
fControlWave = ahiCreateStringField(
?name 'fControlWave
?prompt "Control Wave"
?value ""
);ahiCreateStringField
fOffValue = ahiCreateStringField(
?name 'fOffValue
?prompt "Off Value"
?value "0.0"
);ahiCreateStringField
fThreshold = ahiCreateStringField(
?name 'fThreshold
?prompt "Threshold"
?value ""
);ahiCreateStringField
fOperator = ahiCreateCyclicField(
?name 'fOperator
?prompt " "
?choices list("<" ">")
?value ">"
?defValue ">"
);ahiCreateCyclicField
calCreateSpecialFunctionsForm('SIScalcWavePassGateForm
list(
list(fControlWave 0:00 380:20 90)
list(fThreshold 0:30 280:20 90)
list(fOperator 350:32 30:20 1)
list(fOffValue 0:60 380:20 90)
);list
)
;printf("form is created\n")
);let
);proc