Is check array

Sent from my iPhone

> On May 21, 2020, at 6:47 PM, ernie hilgers via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> Mac 10.13, 4D v13
> 
> Working with PROCESS 4D TAGS and testing it baffles me because, 
> I created a 'template' html document, that gets opened by 4D 
> which contains this code:
> 
>  <tr>
>    <!--4DLOOP aTxtHeaders1-->
>    <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>    <!--4DENDLOOP-->
> </tr>
> 
> In a 4D method that runs this aTxtHeaders array is filled with 7 text strings.
> 
> The template get's opened:
> 
> $path_t:=Get 4D folder(Current Resources folder)+"monthly.html"
> DOCUMENT TO BLOB($path_t;$template_x)
> 
> PROCESS 4D TAGS($template_x;$processed_x)
> 
> $path_t:=Get 4D folder(Database Folder)+"attachmentz"+Folder 
> separator+"Rob_321.html"
> BLOB TO DOCUMENT($path_t;$processed_x)
> 
> standard code to be found in the manual.
> 
> When I open the Rob_321.html file with BBEditI see this result, which is 
> correct
> 
>         <table cellspacing="0" border="1" cellpadding="2"  
> bordercolor="#f0f0f0" width="100%">
>             <tr>
>              <th> Description</th>
>              <th> &#37;</th>
>              <th> Hours</th>
>              <th> Income</th>
>              <th> Misc</th>
>              <th> Year Totals</th>
>              <th> </th>
>             </tr>
>          </table>
> 
> So I copy that exact -same- code over to another 4D project, using the -same- 
> array and same open file code.
> Then when I open this Rob_321.html  using BBEdit I see this: 
> 
>                 <table cellspacing="0" border="1" cellpadding="5"  
> bordercolor="#f0f0f0" width="100%">
>             <tr>
>                 <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>                <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>                <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>                 <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>                 <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>                <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>                <th><!--4DVAR aTxtHeaders{aTxtHeaders}--></th>
>             </tr>
> 
> What am I missing ? or doing wrong ?   
> Both programs written by me are opened with the same version of 4D v13
> Also opened the test-code and the final-code simultaneous with 2 4D v13 
> programs and compared Preference settings. 
> 
> 
> ernie hilgers (aruba)
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to