This may be more a formatting question than anything...
I have a for next loop, ie
For lLoop = 1 to lCount 'Where lcount can be as high as 65k
Next
If a string in this datastring that will be parsed inside the for next loop contains a "_"
on the last character then I want to grab the next piece of the
array and incr the For loop.
If I iterate will I lose my place on the stack?
I could just incr the counter and grab the next piece but then I will re-iterate
through the code on the next loop through...
This is actually my PBCC MAKEINC.BAS file that I'm working on to create declarations from .BAS files...
ie, this is the code
Is that clear as mud? I need to keep grabbing BasData(lLoop) + 1, +2 until the "_" is not found on the right Trim$ of the string....
Scott
------------------
Scott
I have a for next loop, ie
For lLoop = 1 to lCount 'Where lcount can be as high as 65k
Next
If a string in this datastring that will be parsed inside the for next loop contains a "_"
on the last character then I want to grab the next piece of the
array and incr the For loop.
If I iterate will I lose my place on the stack?
I could just incr the counter and grab the next piece but then I will re-iterate
through the code on the next loop through...
This is actually my PBCC MAKEINC.BAS file that I'm working on to create declarations from .BAS files...
ie, this is the code
Code:
For lLoop = 1 To lCount If LCase$(Left$(BasData(lLoop),3)) = "sub" Then End If If LCase$(Left$(BasData(lLoop),8)) = "function" Then 'This has potential to include "Function =", parse for that If LCase$(Left(BasData(lLoop),9)) = "function=" Or LCase$(Left(BasData(lLoop),10)) = "function =" Then Iterate 'Should be an actual function now. IncData(lLoop) = "Declare " & BasData(lLoop) If Right$(Trim$(BasData(lLoop),1) = "_" Then 'Multi-line function header 'Need to grab lLoop + 1, +2 until "_" is not on the end. End If End If Next
Is that clear as mud? I need to keep grabbing BasData(lLoop) + 1, +2 until the "_" is not found on the right Trim$ of the string....
Scott
------------------
Scott
Comment