An Array Maybe?
Posted on 1999-09-14
Howdy:) This is my first time here. I am a beginner in visual basic and am using 5.0 The code below works fine. My problem is that I want the code to fire off more than one "pic.bmp" without overwriting. Is there a way to write this so that I don't have to repeat it 10 times one after the other (told you i was a beginner)? I also would like to know if there is a way to change the ""DateAdd("s", 30, Now)"" so that a user could select their own time in "s" for seconds, "n" for minutes etc. I think this should be enough for now. Please submit some working code for the incomplete idiot !
I don't know how much this question is worth, but I received 75 Points when I joined up here. Hope this is enough ?
Dim CheckTyme As Date
CheckTyme = DateAdd("s", 30, Now)
Do Until Now > CheckTyme
Set Picture1.Picture = CaptureScreen()
SavePicture Picture1.Picture, "C:\Save\pic1.bmp"