Unusual behaviour [Valentina with LIVECODE API, Converting BitSets to ArraySets]
wtng
wtng at pacific.net.sg
Wed Jun 20 02:56:43 CDT 2012
Following on from 1st e-mail, additional tests:
When I write:
put VField_FindValue (fldCode, "E001") into tBitSetRef
put VSet_Count(tBitSetRef) into tCount
put tCount after field efDisplay
I will get 1 appearing (correct as only one record with code E001).
BUT when I write:
put VField_FindValue (fldCode, "E001") into tBitSetRef
put VArraySet_FromBitSet (tBitSetRef) into tArySetRef
put VSet_Count(tArySetRef) into tCount
put tCount after field efDisplay
I don't hang...but I don't get any output in field efDisplay as well???
Nothing happens!
I am trying to get comfortable with converting BitSets to ArraySets but
right now, I seem to be doing something wrong.
rgds
Wee tong
Btw, I am using Valentina 4.8.1 with Livecode 4.6.4
From: wtng [mailto:wtng at pacific.net.sg]
Sent: Wednesday, 20 June, 2012 2:09 PM
To: 'valentina at lists.macserve.net'
Subject: Unusual behaviour [Valentina with LIVECODE API, Converting BitSets
to ArraySets]
Friends,
Background: I have a simple test table called pricelist with 4 columns and
only 12 records.
In my card script, I have already set up my table reference to be the global
variable tblPricelist.
My problem arises as I am trying out the functions to change a bitset to
arrayset.
When I do this:
global tblPricelist -- table pricelist
put VTable_SelectAllRecords (tblPricelist) into tBitSetRef
put VArraySet_FromBitSet (tBitSetRef) into tArySetRef
it executes silently in the background, apparently no problem.
BUT, when I do this (efDisplay is a Livecode text field):
global tblPricelist -- table pricelist
put VTable_SelectAllRecords (tblPricelist) into tBitSetRef
put VArraySet_FromBitSet (tBitSetRef) into tArySetRef
put "done" into field efDisplay
the execution HANGS! In fact, ANY command I execute after I use the
VArraySet_FromBitSet() function causes my script to hang.
Am I missing something here?
Sincerely
Ng Wee Tong (surname is "Ng".J)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina/attachments/20120620/79fe454d/attachment-0001.html>
More information about the Valentina
mailing list