Hi, I am experiencing some trouble when trying to get a function to take a panel as a parameter and use fcos() or cos() to calculate the number needed.
Do panel pointers not work anymore? I read in the manual that they "are" supported but the engine is chucking up an error saying "parameter not known _arg1 parameter"
here is the code:
Code:
string Cx_corner;
PANEL* Cx_panel_name;
bmap* Cx_bmap_name;
var Cx_angle = 0;
function CoFinderX(Cx_panel_name,Cx_bmap_name,Cx_corner){
wait(1);
if(Cx_corner == "TLeft"){
return(0);
}
if(Cx_corner == "TRight"){
Cx_angle = -Cx_panel_name.angle;
temp = fcos(Cx_angle,bmap_width(Cx_bmap_name));
return(temp);
}
}