<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : sqlite da nasıl Id 1 den başlatırım</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : sqlite da nasıl Id 1 den başlatırım]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 20:04:24 +0000</pubDate>
  <lastBuildDate>Wed, 07 Aug 2024 10:07:29 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=825</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[sqlite da nasıl Id 1 den başlatırım : Merhaba &#350;enolSqlite tablo olu&#351;tururkenCREATE...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=825&amp;PID=1494#1494</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 825<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ağustos&nbsp;2024 Saat 10:07<br /><br />Merhaba Şenol&nbsp;<div>Sqlite tablo oluştururken&nbsp;</div><div><span ="hljs-keyword" style="-sizing: border-; margin: 0px; color: var--hljs-ula-color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">CREATE</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;"> </span><span ="hljs-keyword" style="-sizing: border-; margin: 0px; color: var--hljs-ula-color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">TABLE</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;"> people (   person_id </span><span ="hljs-built_in" style="-sizing: border-; margin: 0px; color: var--hljs--color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">INTEGER</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;"> PRIMARY </span><span ="hljs-keyword" style="-sizing: border-; margin: 0px; color: var--hljs-ula-color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">KEY</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;"> AUTOINCREMENT,   first_name </span><span ="hljs-built_in" style="-sizing: border-; margin: 0px; color: var--hljs--color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">text</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;"> </span><span ="hljs-keyword" style="-sizing: border-; margin: 0px; color: var--hljs-ula-color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">NOT</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;"> </span><span ="hljs-literal" style="-sizing: border-; margin: 0px; color: var--hljs-literal-color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">NULL</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;">,   last_name </span><span ="hljs-built_in" style="-sizing: border-; margin: 0px; color: var--hljs--color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">text</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;"> </span><span ="hljs-keyword" style="-sizing: border-; margin: 0px; color: var--hljs-ula-color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">NOT</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;"> </span><span ="hljs-literal" style="-sizing: border-; margin: 0px; color: var--hljs-literal-color; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre;">NULL</span><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;">);</span></div><div><span style="color: rgb56, 58, 66; font-family: &quot;Roboto Mono&quot;, ui-monospace, SFMono-Regular, Menlo, M&#111;naco, C&#111;nsolas, &quot;Liberati&#111;n Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 17.68px; white-space: pre; : rgb250, 250, 250;">bir tanımla yaparsan 1 den başlayarak otomatik artar. </span></div>]]>
   </description>
   <pubDate>Wed, 07 Aug 2024 10:07:29 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=825&amp;PID=1494#1494</guid>
  </item> 
  <item>
   <title><![CDATA[sqlite da nasıl Id 1 den başlatırım : //Bu kodda mesela database&amp;#039;i...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=825&amp;PID=1492#1492</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=191">Senol</a><br /><strong>Konu:</strong> 825<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ağustos&nbsp;2024 Saat 09:41<br /><br /><div>//Bu kodda mesela database'i açıp id kısmına 1 yazmadan çalışmıyor elimle manuel //yazmam lazım o da sqlite ın kullanım mantığını bozuyor bunu nasıl yapabilirim<br>var&nbsp; &nbsp;</div><div>&nbsp; hayvanYukle : TclForm;</div><div>&nbsp; btnUnit,konumBtn: TclButton;</div><div>&nbsp; edtYukleyenKisi, edtKonumBilgisi, edtNotEkle : TclEdit;</div><div>&nbsp; btnInsert : TclButton;</div><div>&nbsp; //testListview : TClListView;</div><div>&nbsp; Qry : TClSQLiteQuery;</div><div>&nbsp; database, password : String;</div><div>&nbsp; okutBtn: TclButton;</div><div>&nbsp; CameraImg , SourceImg: TClImage;</div><div>&nbsp; LMemStream: TCLMemoryStream;</div><div>&nbsp; isUnit2Open: Boolean; // Burada sadece değişkeni tanımlıyoruz</div><div>&nbsp; ImageAddBtn: TClProButton;</div><div>&nbsp; Latitude,Longitude : String;</div><div>&nbsp; clRest:TclRest;</div><div>&nbsp; qrya:TCLJSONQuery;</div><div>&nbsp; qryString,format,resimString:String;</div><div>&nbsp; noteMemo:TCLMemo;</div><div><br></div><div>/*</div><div>void SendTohayvanYukle;</div><div>{</div><div>&nbsp; CallerForm.clShow;</div><div>}</div><div><br></div><div><br></div><div>void GetData;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT ''Urun adi:'' || UrunAdi as MAIN_TEXT, ''Urun Fiyati:'' || UrunFiyat as SIDE_TEXT_CENTER, ''Urun stok:'' || UrunStok as SIDE_TEXT_TOP, ''Barkod No:'' || BarkodOkut as FOOTER_TEXT, ''Urun Açıklaması:'' || Aciklamasi as SUB_TEXT FROM Categories');</div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; testListview.clLoadListViewDataFromDataset(Qry);</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Exception class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div>*/</div><div><br></div><div>void InsertToDatabase;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'INSERT INTO Categories (Yukleyenadi, KonumBilgisi, NotBilgisi,Base64) VALUES (' + QuotedStr(edtYukleyenKisi.Text) + ',' + QuotedStr(edtKonumBilgisi.Text) + ',' + QuotedStr(edtNotEkle.Text) + ',' + QuotedStr(resimString)+ ')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; //GetData;</div><div>&nbsp; &nbsp; ShowMessage('Veri ekleme başarılı');</div><div>&nbsp; &nbsp; edtYukleyenKisi.Text = '';</div><div>&nbsp; &nbsp; edtKonumBilgisi.Text = '';</div><div>&nbsp; &nbsp; edtNotEkle.Text = '';</div><div>&nbsp; &nbsp; CameraImg.MultiResBitmap.Clear;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Exception class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage+'insert');</div><div>&nbsp; }&nbsp;</div><div>}</div><div><br></div><div>void getImageBase64;</div><div>{</div><div>&nbsp; CameraImg.Bitmap.SaveToStream(LMemStream);</div><div>&nbsp; resimString = LMemStream.AsBase64;</div><div>&nbsp; InsertToDatabase;</div><div>&nbsp;</div><div>}</div><div><br></div><div><br></div><div>void formatAl;</div><div>{</div><div>&nbsp; with qrya do</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; format=FieldByName('formatted').AsString;</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp;&nbsp;</div><div>}</div><div>void konumAlma;</div><div>{</div><div>&nbsp;Latitude=clGetStringTo(Clomosy.LocationValue,'|')</div><div>&nbsp;Longitude=clGetStringAfter(Clomosy.LocationValue,'|')</div><div>Latitude=clGetStringReplace(Latitude,',','.');</div><div>Longitude=clGetStringReplace(Longitude,',','.');</div><div>&nbsp;ShowMessage('Latitude value: '+Latitude);</div><div>&nbsp;ShowMessage('Longitude value: '+Longitude);</div><div>&nbsp;clRest=TCLRest.Create;</div><div>&nbsp; clRest.BaseURL = '<a href="https://api.geoapify.com/v1/geocode/reverse" target="_blank" rel="nofollow">https://api.geoapify.com/v1/geocode/reverse</a>?'+'lat='+Latitude+'&amp;lon='+Longitude+'&amp;apiKey=dd4bacb2b2f845c1ad9439f8f8ae9289';</div><div>&nbsp; &nbsp;clRest.Accept = 'application/json';</div><div>&nbsp; &nbsp;clRest.Method = rmGET;</div><div>&nbsp; &nbsp; clRest.Execute;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;qrya= Clomosy.ClDataSetFromJSON(clRest.Response);</div><div>&nbsp; &nbsp; with qrya do</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; qryString=FieldByName('features').AsString;</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;qrya= Clomosy.ClDataSetFromJSON(qryString);</div><div>&nbsp; &nbsp; &nbsp;with qrya do</div><div>&nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; qryString=FieldByName('properties').AsString;</div><div>&nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;qrya= Clomosy.ClDataSetFromJSON(qryString);</div><div>&nbsp; &nbsp; &nbsp;formatAl;</div><div>&nbsp; &nbsp; &nbsp;edtKonumBilgisi.Text=format;</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage(format);</div><div>}</div><div><br></div><div>void dokunmaDurum;</div><div>{</div><div>&nbsp; if (hayvanYukle.clFormGestureEvent_GestureID == 264 &amp;&amp; not (isUnit2Open))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; isUnit2Open = True; // Unit2'nin açık olduğunu belirleyin</div><div>&nbsp; &nbsp; Clomosy.RunUnit('Unit2');</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void addImageClick;</div><div>{</div><div>&nbsp; Clomosy.ImageChooser(hayvanYukle, CameraImg);</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void Unit2CloseEvent;</div><div>{</div><div>&nbsp; isUnit2Open = False; // Unit2 kapandığında flag'i sıfırlayın</div><div>}</div><div><br></div><div>{</div><div><br></div><div>&nbsp; hayvanYukle = TclForm.Create(Self);</div><div>&nbsp;LMemStream = TCLMemoryStream.Create;</div><div>&nbsp; edtYukleyenKisi = hayvanYukle.AddNewEdit(hayvanYukle, 'edtYukleyenKisi', 'Yüklen Kişi:');</div><div>&nbsp; edtYukleyenKisi.Align = alMostTop;</div><div>&nbsp; konumBtn = hayvanYukle.AddNewButton(hayvanYukle,'konumBtn','Konum bilgilerini al');</div><div>&nbsp; konumBtn.Width = 150;</div><div>&nbsp; konumBtn.Align=alMostTop;</div><div>&nbsp; hayvanYukle.AddNewEvent(konumBtn,tbeOnClick,'konumAlma');</div><div>&nbsp;&nbsp;</div><div>&nbsp; edtKonumBilgisi = hayvanYukle.AddNewEdit(hayvanYukle, 'edtKonumBilgisi', 'Konum bilgisi giriniz');</div><div>&nbsp; edtKonumBilgisi.Align = alMostTop;</div><div>&nbsp;&nbsp;</div><div>&nbsp; edtNotEkle = hayvanYukle.AddNewEdit(hayvanYukle, 'edtNotEkle', 'Not ekleyiniz');</div><div>&nbsp; edtNotEkle.Align = alMostTop;</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ImageAddBtn = hayvanYukle.AddNewProButton(hayvanYukle, 'ImageAddBtn', 'Görsel Ekle');</div><div>&nbsp; clComponent.SetupComponent(ImageAddBtn, '{"TextSize":16, "TextBold":"yes", "BackgroundColor":"#00b282", "RoundWidth":8, "RoundHeight":8, "TextColor":"#ffffff", "Height":42, "MarginBottom":16}');</div><div>&nbsp; hayvanYukle.AddNewEvent(ImageAddBtn, tbeOnClick, 'addImageClick'); // kamera açtıran buton</div><div>&nbsp; ImageAddBtn.Align=alMostTop;</div><div>&nbsp;&nbsp;</div><div>&nbsp; CameraImg = hayvanYukle.AddNewImage(hayvanYukle, 'CameraImg');</div><div>&nbsp; CameraImg.Align = alMostTop;</div><div>&nbsp; CameraImg.Height = 390;</div><div>&nbsp; CameraImg.Width = 300;</div><div>&nbsp;&nbsp;</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div><br></div><div>&nbsp;</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp; /*</div><div>&nbsp; testListview = hayvanYukle.AddNewListView(hayvanYukle, 'testListview');</div><div>&nbsp; testListview.Align = alClient;</div><div>&nbsp; */</div><div>&nbsp; btnInsert = hayvanYukle.AddNewButton(hayvanYukle, 'btnInsert', 'Ekle');</div><div>&nbsp; btnInsert.Align = alBottom;</div><div>&nbsp; btnInsert.Height = 55;</div><div>&nbsp; hayvanYukle.AddNewEvent(btnInsert, tbeOnMouseDown, 'getImageBase64');</div><div>&nbsp; /*</div><div>&nbsp; hayvanYukle.clSetTouchIG(igLongTap, testListview);</div><div>&nbsp; hayvanYukle.AddNewEvent(testListview, tbeOnGesture, 'dokunmaDurum');</div><div>&nbsp; */</div><div>&nbsp; database = Clomosy.AppFilesPath + 'sokaktakiDostum.db3';</div><div>&nbsp; password = '';</div><div><br></div><div>&nbsp; // Başlangıçta flag'i False olarak ayarlayın</div><div>&nbsp; isUnit2Open = False;</div><div><br></div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(database, password);</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'CREATE TABLE IF NOT EXISTS Categories(Id PRIMARY KEY,Yukleyenadi TEXT,KonumBilgisi TEXT,NotBilgisi TEXT,Base64 TEXT);';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; ShowMessage('Veri tabanına tablo ekleme işlemi başarılı!');</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Exception class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div><br></div><div>&nbsp; //GetData;</div><div>&nbsp; hayvanYukle.Run;</div><div>}</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 07 Aug 2024 09:41:25 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=825&amp;PID=1492#1492</guid>
  </item> 
 </channel>
</rss>