Yes, I mean the loop doesn't take into account mixed content I had the feeling that one of the goals of the tip (http://kb.4d.com/assetid=77422) was to make an efficient loop, meaning that homogenous parts of the content can be skipped Why else use the variables $startBlock and $endBlock, but maybe I was wrong , because then you also have to test on mixed type content Starting with this :
$start:=ST Start text $end:=$start+1 does the trick, but then again it means just testing every "character" in the content for being an expression. This doesn't feel efficient to me > -----Oorspronkelijk bericht----- > Van: Keisuke Miyako <keisuke.miy...@4d.com> > Verzonden: dinsdag 29 mei 2018 17:30 > Aan: 4D iNug Technical <4d_tech@lists.4d.com> > Onderwerp: Re: 4D Write Pro: traverse throught all available headers and > footers > > when you say "it misses an expression" > > do you mean ST Get content type doesn't report "ST Expression type" (for > instance you get mixed type) or do you mean ST Get expression doesn't return > an expression (maybe you should start from 1, not ST Start text) > > ? > > > 2018/05/30 0:05、Piotr Chabot Stadhouders via 4D_Tech > > <4d_tech@lists.4d.com> のメール: > > What do you think? > > > ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************