I'm using the code below to determine the position of the first hole in the shape file. Can someone tell me how to modify it so I can use it to return the position for the first hole in each step?


@FIRSTHOLE
//This section finds the 1st hole in the database and
//assigns #V6 to the Xpos and #V5 to the Ypos
// This section always outputs a code generation error. I don't know why.....
//
#EVAL(#U0=1)
#REPEAT(TOTEL())<
#IF(VIS(#U0))<
#IF(STEP(#U0)>-1)<
#IF(TYP(#U0)=1)<
#EVAL(#V2=LEN(#U0))
#EVAL(#S2=#V2)
#IF(STRLEN(#S2)>0)<
#EVAL(#V6=ENX(#U0))
#EVAL(#V5=ENY(#U0))
#EVAL(#U0=TOTEL())>>>>
#EVAL(#U0=#U0+1)>


Thanks, Dave

Reply via email to