Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set filter help
Message
 
 
To
15/06/1999 16:24:35
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00230150
Message ID:
00230178
Views:
24
You are using nLastHeight in the filter expression and then changing the value of nLastHeight just after you browse the first time. Use 2 different variables so the value used in the filter does not change until the next loop.

>What You're saying if perfectly logical to me and hoew I expected the Code I Wrote to behave.. It Does not.. This is the exact code I wrote.. Im Stumped
>
>A Report Table is open.
>nLastheight=0
>this.HeaderCnt=1
>set safety off
>	index on allt(str(vpos))+allt(str(hpos)) to c:\temp\bb
>set safety on
>
>for x=0 to 3
>	Go top
>	Locate for objtype=9 and objcode=x
>	if found()
>		totalheight=height+nlastheight
>		Set filter to  between(vpos,nlastheight,totalheight) and inlist(objtype,5,8)
>		brow  && Works Here<----------------------
>		nlastheight=totalheight
>		Go top
>		replace EXPR with "'<H"+ALLT(STR(this.HeaderCnt))+;
>		">+'"+expr
>		Go Bott
>		Replace EXPR with Expr+"'+</H"+allt(str(this.headercnt))+">'"
>		this.headercnt=this.headercnt+1	
>		Brow  && Doesnt Work Here<--------------------
>		Set filter to
>	Endif
>EndFor	
>
>Return
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform