<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 3/17/2011 7:32 PM, Tiemo Hollmann TB wrote:
<blockquote cite="mid:002701cbe4c9$56cd0fb0$04672f10$@de"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@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;}
/* 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.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></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]-->
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">creating tables with the
Valentina APIs from liveCode everything works fine with
using only one flag, like:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt;
font-family: "Times New
Roman","serif"; color: rgb(127, 127, 0);"
lang="EN-US">get</span></b><span style="font-size: 12pt;
font-family: "Times New Roman","serif";
color: black;" lang="EN-US"> VTable_CreateShortField(tblRef,
</span><span style="font-size: 12pt; font-family: "Times
New Roman","serif"; color: rgb(0, 0, 127);"
lang="EN-US">"myFieldName"</span><span style="font-size:
12pt; font-family: "Times New
Roman","serif"; color: black;" lang="EN-US">,
fIndexed)</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Now I want to add the
first time multiple flags to a field, but it fails with any
syntax shown in the wiki:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt;
font-family: "Times New
Roman","serif"; color: rgb(127, 127, 0);"
lang="EN-US">get</span></b><span style="font-size: 12pt;
font-family: "Times New Roman","serif";
color: black;" lang="EN-US"> VTable_CreateShortField(tblRef,
</span><span style="font-size: 12pt; font-family: "Times
New Roman","serif"; color: rgb(0, 0, 127);"
lang="EN-US">"myFieldName"</span><span style="font-size:
12pt; font-family: "Times New
Roman","serif"; color: black;" lang="EN-US">,
EVFlags.fIndexed + EVFlags.fUnique)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Times New Roman","serif"; color:
black;" lang="EN-US">with this syntax I get from LiveCode
the error: “+: error in left operand”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Times New Roman","serif"; color:
black;" lang="EN-US">same with</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt;
font-family: "Times New
Roman","serif"; color: rgb(127, 127, 0);"
lang="EN-US">get</span></b><span style="font-size: 12pt;
font-family: "Times New Roman","serif";
color: black;" lang="EN-US"> VTable_CreateShortField(tblRef,
</span><span style="font-size: 12pt; font-family: "Times
New Roman","serif"; color: rgb(0, 0, 127);"
lang="EN-US">"myFieldName"</span><span style="font-size:
12pt; font-family: "Times New
Roman","serif"; color: black;" lang="EN-US">,
fIndexed + fUnique)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">also not without the “+”
or with quotes.<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">Probably I don’t
understand the wiki?<o:p></o:p></span></p>
<br>
</div>
</blockquote>
The wiki describes a general approach common for all ADKs. <br>
V4REV's specific is - everything is passed as a strings. In
particular you should pass the set of flags as a tokenized string.<br>
<br>
<b><span style="font-size: 12pt; font-family: "Times New
Roman","serif"; color: rgb(127, 127, 0);"
lang="EN-US">get</span></b><span style="font-size: 12pt;
font-family: "Times New Roman","serif"; color:
black;" lang="EN-US"> VTable_CreateShortField(tblRef, </span><span
style="font-size: 12pt; font-family: "Times New
Roman","serif"; color: rgb(0, 0, 127);"
lang="EN-US">"myFieldName"</span><span style="font-size: 12pt;
font-family: "Times New Roman","serif"; color:
black;" lang="EN-US">, "fIndexed, fUnique" )</span><br>
<pre class="moz-signature" cols="72">--
Best regards,
Ivan Smahin
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
<a class="moz-txt-link-freetext" href="http://www.valentina-db.com">http://www.valentina-db.com</a></pre>
</body>
</html>