what_col()
Returns the column number of the caller of the current function as an integer.
Syntax:
what_col([call_depth]);
where
call_depth is optional. An integer that instructs the function to return the column number of the function at the specified call_depth. If not supplied, call_depth is defaulted to 1.
Example:
File x.ael:
defun funct()
{ // refers to funct() being called
fputs(stdout,what_col()); // prints 1
// refers to what_col() being called
fputs(stdout,what_col(0)); // 14
// refers to funct() being called
fputs(stdout,what_col(1)); // prints 1
// refers to x.ael being called (or loaded)
fputs(stdout,what_col(2)); // prints 1
}
funct();
// refers to x.ael being called (or loaded)
fputs(stdout,what_col()); // prints 1
Where Used:
Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()