2016-03-24 01:18 PM
hsid=101 FOR p=1 TO 5 HOTSPOT2 0, 0, hsid, lenght, 1+128 : hsid=hsid+1 HOTSPOT2 0, lenght, hsid, lenght, 2 : hsid=hsid+1 HOTSPOT2 0, -1, hsid, lenght, 3 : hsid=hsid+1 line2 0,0,0,lenght add2 3, 0 NEXT pI suppose I need to make some sort of an array where each "lenght" is different but its seems to be in conflict with the "FOR TO" Loop.
DIM lenght[] hsid=101 FOR p=1 TO 5 HOTSPOT2 0, 0, hsid, lenghtAny ideas how to get hotspots work seperately in a loop ?, 1+128 : hsid=hsid+1 HOTSPOT2 0, lenght
, hsid, lenght
, 2 : hsid=hsid+1 HOTSPOT2 0, -1, hsid, lenght
, 3 : hsid=hsid+1 line2 0,0,0,lenght
add2 3, 0 NEXT p
2016-03-24 02:20 PM
2016-03-24 03:19 PM
2016-03-24 03:24 PM
hsid=hsid+1 i=1 FOR p=1 TO 5 GOSUB 100 !!!Hotspots line2 0,0,0,lenght add2 3, 0 i=i+1 NEXT p END 100: !!!Hotspots HOTSPOT2 0, 0, hsid, lenght, 1+128 : hsid=hsid+1 HOTSPOT2 0, lenght, hsid, lenght, 2 : hsid=hsid+1 HOTSPOT2 0, -1, hsid, lenght, 3 : hsid=hsid+1 RETURNThe key is that the "lenght" parameter requires in the "parameters" a "array values" in a column:
2016-03-25 04:29 AM
philips wrote:Thanks. It has it's uses.
Erich, thank so much !
It works !
BTW Nice object, thumbs up.