<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-SG link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US>Friends,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Background:  I have a simple test
table called pricelist with 4 columns and only 12 records.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>In my card script, I have already set up my
table reference to be the global variable tblPricelist.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>My problem arises as I am trying out the
functions to change a bitset to arrayset.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>When I do this:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><b><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:#7F7F00'>global</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
tblPricelist </span><b><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#007F00'>-- table pricelist</span></b><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>   </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>   </span><b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F7F00'>put</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
VTable_SelectAllRecords (tblPricelist) </span><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:#7F007F'>into</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
tBitSetRef</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>   </span><b><span style='font-size:9.0pt;font-family:
"Segoe UI","sans-serif";color:#7F7F00'>put</span></b><span style='font-size:
9.0pt;font-family:"Segoe UI","sans-serif";color:black'> VArraySet_FromBitSet
(tBitSetRef) </span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#7F007F'>into</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'> tArySetRef</span><span lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>it executes silently in the background,
apparently no problem.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US>BUT, when I do this (efDisplay is a Livecode
text field):<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><b><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:#7F7F00'>global</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
tblPricelist </span><b><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#007F00'>-- table pricelist</span></b><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>   </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>   </span><b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F7F00'>put</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
VTable_SelectAllRecords (tblPricelist) </span><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:#7F007F'>into</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
tBitSetRef</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>   </span><b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F7F00'>put</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
VArraySet_FromBitSet (tBitSetRef) </span><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:#7F007F'>into</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
tArySetRef<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><b><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:#7F7F00'>   put</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#00007F'>"done"</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F007F'>into</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F007F'>field</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
efDisplay<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'><o:p> </o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>the execution HANGS!  In
fact, ANY command I execute after I use the VArraySet_FromBitSet() function
causes my script to hang.<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'><o:p> </o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>Am I missing something here?<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'><o:p> </o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>Sincerely <o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'>Ng Wee Tong (surname is “Ng”…</span><span
style='font-size:9.0pt;font-family:Wingdings;color:black'>J</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>)</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>

</div>

</body>

</html>