<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>16 Sep 2016 00:36:00 Z</lastBuildDate><pubDate>16 Sep 2016 00:36:00 Z</pubDate><description>Hi all&#13;
&#13;
The cast function has no Boolean type which is causing me a problem with sql queries, and trying to display in a browsing table.&#13;
&#13;
Here's my code&#13;
&#13;
&#13;
myFilter is Data Source&#13;
sQuery is string = [&#13;
SELECT DISTINCT&#13;
tbl_MYOB_SaleLines.lin_ItemUid AS guid,&#13;
tbl_MYOB_SaleLines.lin_ItemNumber AS code,&#13;
tbl_MYOB_SaleLines.lin_ItemName AS Name,&#13;
CAST( 1 AS integer ) AS YesNo&#13;
FROM&#13;
tbl_MYOB_SaleLines&#13;
ORDER BY&#13;
code ASC&#13;
]&#13;
&#13;
if HExecuteSQLQuery(myFilter,sQuery)&#13;
hreadfirst(myFilter)&#13;
BuildBrowsingTable(Tab_RunReport.Table_Filter6,myFilter,taFillTable)&#13;
else&#13;
info("no records selected")&#13;
end&#13;
&#13;
{"Table_Filter6._COL4"}..InputType = typCheckBox&#13;
&#13;
Now I set the browsing table column to checkbox but the display of the checkbox is 00 $ 00 for each line, so must be related to the integer as displays ok if I use a Boolean field from the table. ( adding a Boolean field to each data file is my current work around... )&#13;
&#13;
Any comments appreciated.&#13;
Thanks MArk</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59585-cast-type-boolean/read.awp</link><title>cast as type boolean</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
