RE: 4D Write Pro: traverse throught all available headers and footers

2018-05-30 Thread Piotr Chabot Stadhouders via 4D_Tech
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 
> 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
**

Re: 4D Write Pro: traverse throught all available headers and footers

2018-05-29 Thread Keisuke Miyako via 4D_Tech
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
**

RE: 4D Write Pro: traverse throught all available headers and footers

2018-05-29 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako,

Did you mean to respond to my "get all expressions" post?

For that I use a code snippet found in a tech tip on kb.4d.com that traverses 
through all expressions in a section, see http://kb.4d.com/assetid=77422
It finds all expressions using ST Get content type
Beside the fact that I don't completely understand the way the loop works, it 
misses an expression when it is the first element in the content

What do you think?

> -Oorspronkelijk bericht-
> Van: Keisuke Miyako 
> Verzonden: vrijdag 25 mei 2018 23:46
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: 4D Write Pro: traverse throught all available headers and
> footers
> 
> Hello,
> 
> the command is ST Get content type
> 
> http://doc.4d.com/4Dv16/4D/16.3/ST-Get-content-type.301-3652488.en.html
> 
> > 2018/05/26 0:46、Piotr Chabot Stadhouders via 4D_Tech
> <4d_tech@lists.4d.com> のメール:
> > I need to traverse through all expressions
> 
> 

**
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
**

Re: 4D Write Pro: traverse throught all available headers and footers

2018-05-25 Thread Keisuke Miyako via 4D_Tech
Hello,

the command is ST Get content type

http://doc.4d.com/4Dv16/4D/16.3/ST-Get-content-type.301-3652488.en.html

> 2018/05/26 0:46、Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> 
> のメール:
> I need to traverse through all expressions



**
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
**