Thanks Greg for your support. However, I spent some times trying to transform explanations you provided in results. But, I failed. I never used and until now I'm not sure I have a good understanding of the encode function.
create HTML table in CSPro logic
I always created HTML table in CSPro logic using file.write and the new way bellow. For the actual purpose, I don't want to create a HTML file, but displaying a dynamic table with results in the CAPI text part. When CSPro Android support rosters, this will not be necessary...
Here's the table that I would like to display in the CAPI text part.
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Household Number</th>
<th>Structure Number</th>
<th>Household within structure</th>
<th>Latitude in degrees</th>
<th>Longitude in degrees</th>
</tr>
<? do numeric i = 1 while i <= totocc(RECORD2) ?>
<tr>
<td>~~visualvalue(LNUMBER(i))~~</td>
<td>~~visualvalue(LSTRUCT(i))~~</td>
<td>~~visualvalue(LNUMBER(i))~~</td>
<td>~~visualvalue(LHOUSEH(i))~~</td>
<td>~~visualvalue(LLATITUDE(i))~~</td>
</tr>
<? enddo; ?>
</thead>
</table>
Please, can you or any other members of the CSPro Developer Team help me in displaying it in the CAPI Text part ?
Thanks in advance,