<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:Tahoma;
panose-1:2 11 6 4 3 5 4 4 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;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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 style='color:#1F497D'>Following on from 1<sup>st</sup>
e-mail, additional tests:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>When I write:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><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'>
VField_FindValue (fldCode, </span><span style='font-size:9.0pt;font-family:
"Segoe UI","sans-serif";color:#00007F'>"E001"</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'>
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'>
VSet_Count(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'> tCount</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'> tCount </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F007F'>after</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><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>I will get 1 appearing (correct as only one record with code
E001).<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>BUT when I write:<o:p></o:p></span></p>
<p class=MsoNormal><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'><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'>
VField_FindValue (fldCode, </span><span style='font-size:9.0pt;font-family:
"Segoe UI","sans-serif";color:#00007F'>"E001"</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'>
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</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'>
VSet_Count(tArySetRef) </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'> tCount</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'> tCount </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F007F'>after</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><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>I don’t hang…..but I don’t get any output in field
efDisplay as well??? Nothing happens!<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>I am trying to get comfortable with converting BitSets to
ArraySets but right now, I seem to be doing something wrong.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>rgds<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>Wee tong<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>Btw, I am using Valentina 4.8.1 with Livecode 4.6.4</span><span
style='color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> wtng [mailto:wtng@pacific.net.sg] <br>
<b>Sent:</b> Wednesday, 20 June, 2012 2:09 PM<br>
<b>To:</b> 'valentina@lists.macserve.net'<br>
<b>Subject:</b> Unusual behaviour [Valentina with LIVECODE API, Converting
BitSets to ArraySets]<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<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>