<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 15 lug 2019 alle ore 08:57 Hans Lehmann <<a href="mailto:hans@gambas-buch.de">hans@gambas-buch.de</a>> ha scritto:<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">
    <font face="DejaVu Sans Mono">Hello.<br>
      <br>
      For a SQLite database project for our online book - in which all
      field types are used - I would like to insert an image (field type
      db.Blob) for each record. I also want to use the most important
      control elements from the component gb.db.form (DataSource,
      DataBrowser with navigation bar (New, Save, Update, Delete,
      Forward, Backward, Start and End), DataControl, DataCombo). <br>
      <br>
      I would like to implement the following:<br>
      <br>
      (1)<br>
      Before saving a new or changed dataset, it should be determined
      whether an image has already been saved. If this is NOT the case,
      the image should be saved after an image selection dialog. <br>
      <br>
      (2)<br>
      Before deleting a dataset, you should ask whether the dataset
      should actually be deleted. At the moment the data record is
      deleted immediately without any further inquiry! <br>
      <br>
      For both tasks the two events BeforeSave( Data As Result ) and
      BeforeDelete( Keys As Variant[] ) are obvious. But I have no idea
      how to handle both tasks with it? Can anyone help with ideas or
      even source code? <br>
      <br>
      Yours sincerely<br>
      <br>
      Hans<br>
    </font>
  </div>

<br></blockquote><div><br></div><div>Hi Hans,<br><br>stimulated by yours and by other questions on the graphic management of data with the gb.db.form component, I started studying it.<br>Unfortunately I am stuck at the connection (Connection1.connection) which is indispensable for quickly compiling through the windows offered by the component.<br>When I start the Database with:<br><br>Connections["Connection1"].Open<br><br>In a Balloon on Debug Common.CHeckDB.34 I get:<br>Unable to locate database 'DB.gambas3' in '~/database' nel FMain:10<br><br>Note: If I open in traditional way it works.<br><br>Regards<br>Gianluigi <br></div></div></div>