1. Antuan Johnson
  2. Valentina Database ADK
  3. 金, 8月 05 2022, 08:38 PM
  4.  メールで購読
I"m receiving a function error in LiveCode when trying to use VArraySet_ItemAt( setRef, inPosition ). It's as if LiveCode doesn't recognize the function. Can someone confirm that I have the correct syntax? I'm trying to use the function after converting a cursor to an arrayset using VCursor_ToArraySet.
コメント
There are no comments made yet.
Ivan Smahin 承諾済みの回答
Indeed, V4REV does not have such methods. The only way to work with any "set" is using an "iterator".
Please, see the examples - tableBrowser.rev, ShowSet method.
It would be something like this one:

put VSet_Count(inSet) into recCount
put VSet_MakeNewIterator( inSet ) into setIteratorRef

repeat with i = 1 to recCount

if i = 1 then
put VSetIterator_FirstItem(setIteratorRef) into recID
else
put VSetIterator_NextItem(setIteratorRef) into recID
end if
...
end repeat
コメント
There are no comments made yet.
  • ページ :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories