<div dir="ltr"><div>This works for me:</div><div><br></div><div><span class="gmail-code-row-text">miconectionSqlite.<a href="http://gambaswiki.org/wiki/lang/exec"><span style="color:rgb(6,0,255);font-weight:bold">Exec</span></a><span style="color:rgb(97,33,136)">(</span><span style="color:rgb(126,75,5)">"<span class="gmail-highlight-w"><b>PRAGMA</b></span> foreign_keys = ON"</span><span style="color:rgb(97,33,136)">)</span></span></div><div><span class="gmail-code-row-text"><span style="color:rgb(97,33,136)"><br></span></span></div><div><span class="gmail-code-row-text"><span style="color:rgb(97,33,136)">Hope it helps...</span></span></div><div><span class="gmail-code-row-text"><span style="color:rgb(97,33,136)"><br></span></span></div><div><span class="gmail-code-row-text"><span style="color:rgb(97,33,136)">Best Regards<br></span></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun., 29 abr. 2019 a las 21:19, Peter Peyotle (<<a href="mailto:peterpeyotle@gmx.de">peterpeyotle@gmx.de</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <p><span class="gmail-m_8455688585102345872tlid-translation gmail-m_8455688585102345872translation" lang="en">Hello,
        again.<br>
        <br>
        I have the following problem with sqlite and gambas.<br>
        I would like to use the functions of Foreign Key with sqlite and
        gambas.<br>
        The problem with this is that with Gambas the execute statement
        "pragma foreign_keys = on" is unsuccessful. The "pragma
        foreign_keys" statement always returns "0", ie no foreign key is
        active.<br>
        However, if I set the foreign key property at the shell level,
        this will correctly return the "1" (at the shell level) as a
        successful setting. If I use the same database at the same time
        as this one on the shell level, however, I only get back the "0"
        in Gambas, so no foreign key is active. Does Gambas have a
        problem with the foreign key?<br>
        So set foreign key on the shell level - no problem.<br>
        Create foreign key within Gambas - not possible.<br>
        I have already tested this with different sqlite versions higher
        than 3.6 in the virtualbox with Lubuntu and Ubuntu. Always the
        same result.<br>
        How can I use Foreign Key with Gambas?<br>
        For solutions and suggestions, I would be very grateful.</span></p>
    <p><br>
      <span class="gmail-m_8455688585102345872tlid-translation gmail-m_8455688585102345872translation" lang="en"><span class="gmail-m_8455688585102345872tlid-translation gmail-m_8455688585102345872translation" lang="en">greetings</span></span></p>
    <p><span class="gmail-m_8455688585102345872tlid-translation gmail-m_8455688585102345872translation" lang="en">Peter ......<br>
      </span></p>
    <p><span class="gmail-m_8455688585102345872tlid-translation gmail-m_8455688585102345872translation" lang="en"><br>
      </span></p>
  </div>

<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>