Guest Posted December 12, 2002 Share Posted December 12, 2002 Say i Have: type line = structure p1,p2 : real; h : handle; end; var p_array: array[1..20] of line; temp : handle; i : integer; dselectall; selectobj(PF=perimeter); temp := fsactlayer; i := 1; while( temp <> nil) do begin p_array.h := temp; getsegpt1(temp,p_array.p1.x,p_array.p1.y); getsegpt2(temp,p_array.p2.x,p_array.p2.y); setpenfore(p_array.h,0,0,65333); i := i + 1; end; I will get a compile error saying that the operands are not of compatible types, meaning that p_array.h is not a handle. What's up with that? Quote Link to comment
Alexandre Villares Posted December 12, 2002 Share Posted December 12, 2002 Hi! You declared p1 and p2 as REAL instead of POINT. best regards, Quote Link to comment
Guest Posted December 13, 2002 Share Posted December 13, 2002 That was just a typo. My problem isn't the point stuff. That works fine it's the fact that vectorscript won't compile when i try to pass p_array.h into a set function as a handle. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.