Jump to content
Developer Wiki and Function Reference Links ×

set functions don't seem to work with handles in structures


Guest

Recommended Posts

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?

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...