Beforepost olayında post olayını nasıl kontrol edebilirim.
Örneğin ;
Procedure dataset1.beforepost();
if ...... then cancelpost;
gibi.
(Cancelpost yazan yere gelmesi gereken kodu istiyorum)
Beforepost olayında post kontrolü
Forum kuralları
Forum kurallarını okuyup, uyunuz!
Forum kurallarını okuyup, uyunuz!
-
- Üye
- Mesajlar: 298
- Kayıt: 19 Tem 2004 01:45
- Konum: Giresun/Samsun
-
- Üye
- Mesajlar: 298
- Kayıt: 19 Tem 2004 01:45
- Konum: Giresun/Samsun
-
- Üye
- Mesajlar: 298
- Kayıt: 19 Tem 2004 01:45
- Konum: Giresun/Samsun
Beforepost olayına ibdataset1.cancel yazıyorum fakat yine de ibdataset1.post olayı çalışıyor.O kaydı post etmiyor tabii.Kayıt siliniyor cancel ile.Başka bir kayıtın üstüne gidiyor.O kaydı post etmeye çalışıyor ve doğal olarak da not in edit mode hata mesajını alıyorum.
O post olayının önüne geçebilir miyim?
Yada o hatayı almamak için neler yapabilirim.
O post olayının önüne geçebilir miyim?
Yada o hatayı almamak için neler yapabilirim.
hata verdiği yerden hemen önce
Kod: Tümünü seç
if not table1.state in [dsInsert, dsEdit] then
abort;
-
- Üye
- Mesajlar: 298
- Kayıt: 19 Tem 2004 01:45
- Konum: Giresun/Samsun