raviprakashg Posted May 3, 2006 Share Posted May 3, 2006 dear friendsi have to use an for loop twise or thrice(it delecared dynamic), Like goto Statement in VB6 it is possible to do in ASP VBScript if not how to Solve itthis code will explain u more for jcnt= 0 to ubound(arShift,2) if NewShift = arshift(0,jcnt) then CheckShift =1 end ifnextif checkShift = 0 then NewShift = NewShift+1 if NewShift > arshift(0,Ubound(arShift,2)) then NewShift = arshift(0,Lbound(arshift))'goto (Here i want to call the for loop again) end if thanks Link to comment Share on other sites More sharing options...
pulpfiction Posted May 3, 2006 Share Posted May 3, 2006 I dont think there is a GOTO in VBScript, One way I can think of is to write theloop in a function and call it in the IF condition....Sub Looping()for jcnt= 0 to ubound(arShift,2) if NewShift = arshift(0,jcnt) then CheckShift =1 end ifnextEnd Subif checkShift = 0 then NewShift = NewShift+1 if NewShift > arshift(0,Ubound(arShift,2)) then NewShift = arshift(0,Lbound(arshift))Looping()end if Link to comment Share on other sites More sharing options...
raviprakashg Posted May 5, 2006 Author Share Posted May 5, 2006 Ok But I have to Check ShiftID in Every Increment, Can u Help me gud day Link to comment Share on other sites More sharing options...
steph74 Posted September 7, 2006 Share Posted September 7, 2006 I didn't understand if newshift was a global variable or not. If it's a local one, you can just pass it to the function calles as a parameter . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now