Rebecka Andersson 3.Sep.13 05:22 AM a Web browser Applications DevelopmentAll ReleasesAll Platforms
My code is working fine but with one problem I can’t get exactly the number of documents that I specified
I need to get 28 documents randomly but sometimes I get 23 or 26 or 30.. Can someone tell me why? What’s wrong with my code?
For x = 0 To 28
randomnumber = CLng (totalinView * Rnd())
Set doc = nav.GetNth(randomnumber).document
Call doc.Replaceitemvalue( "rank",Null)
Call doc.Replaceitemvalue( " season", "12" )
Call doc.Save( True, False)
Next