csyasar Posted September 17, 2014 Share Posted September 17, 2014 Arkadaşlar merhaba; üzerinde çalıştığım projede anaform var. anaformun üzerinde connection nesnesi ve lookup olarak kullandığım her formda kullanılan ortak queryler var. birde form2 var diyelim. form2 de anaform uses olarak linklenmiş durumda. bu form üzerinde bulunan her türlü nesneye anaformdan atadığım özellikler sonucu ekteki hatayı alıyorum. bu atanan özelliğe örnek: form2 de bulunan querye anaformdaki connectionu atadığımda, form2deki bir datasource'e anaformdaki bir query bağladığımda vs. bu sıkıntı yüzünde her formun create olayına teker teker connection ve bağlantıların atamasını yapıyorum. örnek: dsbaskart.DataSet:=fbasvuruliste.qbas; qislem.Connection:=MainForm.conn; unidblookupcombobox1.listsource:=MainForm.dsKul; unidblookupcombobox2.listsource:=MainForm.dsBirim; aşağıdaki hata ekranı sebebiyle sürekli elle atıyorum bunları. aynı sıkıntı sizde de var mı? delphi versiyon: d2010, unigui v0.96 Quote Link to comment Share on other sites More sharing options...
iyarar Posted September 17, 2014 Share Posted September 17, 2014 Merhaba, Ben datamodule kullanıyorum bütün connection query vs. datamodulde. bütün formlarda da uses ta datamodule ekli ve bahsettiğiniz gibi bir sorunla karşılaşmadım . Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 17, 2014 Administrators Share Posted September 17, 2014 Connection nesnesi için en doğru yer MainModule'dur. Bir de bu şekilde deneyin. Quote Link to comment Share on other sites More sharing options...
csyasar Posted September 17, 2014 Author Share Posted September 17, 2014 sadece connection da değil query vb bağlantılarda da oluyor aynı sıkıntı. bir de mesela 3-5 defa compile edin sıkıntı yok. sonra tekrar ettiğinizde hata veriyor. linkleri silince sorun yok. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 17, 2014 Administrators Share Posted September 17, 2014 Formlar kendi aralarında bağlantı oluşturmamalı. Bir Form MainModule veya uniGUI wizard ile yaratılan DataModule'lerde bulunan komponentlerle bağlantı kurmalı. 1 Quote Link to comment Share on other sites More sharing options...
csyasar Posted September 18, 2014 Author Share Posted September 18, 2014 datamodule çevirdim. şimdilik sıkıntı yok gibi. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 18, 2014 Administrators Share Posted September 18, 2014 Unutmayın. DataModule'u Delphi'den değil uniGUI'nin sihirbazından oluşturmanız lazım. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.