--- In [EMAIL PROTECTED], "brucexs" <[EMAIL PROTECTED]> wrote:
> It works fine for me in all cases I have tested; for example, the 
> following script works fine.
> 
Here your and my script merged. The big difference is that I do not 
read just created notes but open existing ones and try to get the 
lines then. The changed script to take this into account is (should 
work with copy & paste):
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

static i nh
;*** Create notes once
if (not vec.exists(nh)) do
nh = vec.create(5)
for (i=0; i<5; i=i+1)
nh[i] = note.open("","pos stack")
endfor
endif

; Assign note note text based on time and randomly roll or unroll
for (i=0; i<5; i=i+1)
note.replacetext(nh[i],"note "++i++" at 
time "++time++"\r\n2line\r\n3line")

; >>>>>> changed to always rolled  <<<<<<<<<<<
; --------------------------------------------
;note.roll(nh[i],random(3))
note.roll(nh[i],0)
; --------------------------------------------

endfor
; *** sleep for a bit just to show results
wait.for(2000)
; *** show first line of text ext
for (i=0; i<5; i=i+1)
win.debug(note.getline(nh[i],0))
endfor



; >>>>>>>> MY STATEMENTS <<<<<<<<<<<

; -- close & open first ------------------------------

*note closecategory *

wait.for(2000)

*note opencategory *


; -- have a look again  ------------------------------

local HANDLELIST

HANDLELIST = note.handlelist("No Category",1)


for (I=1;1;I=I+1)

    HANDLE = word(HANDLELIST,I)
  
    if (HANDLE eq "")
            break       

    win.debug(note.getline(HANDLE,0))

   ; delete notes so that the sample
   ; can be repeated endless
    note.delete(HANDLE)

endfor

; reset your vector so that the sample
; can be repeated endless
nh = ""






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to