Page 1 of 1
D4D Lyr_Set not working
Posted:
Sat Oct 06, 2018 1:01 am
by dhs
Re: D4D Lyr_Set not working
Posted:
Thu Feb 07, 2019 2:08 pm
by Mark F. Madura
Tracing through the debugger in DataCAD, the procedure lyr_set makes a call to valid_addr which returns false and the subsequent call to lyr_setcurr never gets called.
Re: D4D Lyr_Set not working
Posted:
Thu Feb 07, 2019 3:33 pm
by Mark F. Madura
I'm still digging into this a bit. It looks like you'll have to declare a layer record to store the layer address.
rlyr: Rlayer
Once the address for the layer you want is stored in the record, you can call...
lyr_set(rlyr.addr)
Re: D4D Lyr_Set not working
Posted:
Thu Feb 07, 2019 3:38 pm
by Mark F. Madura
The DCAL for Delphi sample LyrRename uses the Rlayer variable.
Re: D4D Lyr_Set not working
Posted:
Thu Feb 07, 2019 9:28 pm
by dhs