TclStringGrid Değer Ekleme
Nereden Yazdırıldığı: Clomosy | Forum
Kategori: Genel Programlama
Forum Adı: Clomosy ile değişken kullanımı
Forum Tanımlaması: TRObject dili ile değişken tanımlaması ve ekranda gösterme
URL: https://forum.clomosy.com.tr/forum_posts.asp?TID=1330
Tarih: 13 Şubat 2026 Saat 19:57 Program Versiyonu: Web Wiz Forums 12.07 - https://www.webwizforums.com
Konu: TclStringGrid Değer Ekleme
Mesajı Yazan: Melih
Konu: TclStringGrid Değer Ekleme
Mesaj Tarihi: 13 Şubat 2026 Saat 16:26
|
https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" rel="nofollow - https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{"version":"2024.11.0","token":"439455f3e46c40b98dbd42a2f1a954d8","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}" crossorigin="anonymous">
Dokümantasyondaki TclStringGrid sayfasında bulunan örnek kodda gösterildiği gibi Grid'e column ve grid numarası girerek değer atamaya çalıştığımda aşağıdaki hatayı alıyorum. //MyGrid.Cells[1, 2] = 'Merhaba'; // Assigns the value 'Hello' to the cell in column 1 and row 2
RUNTIME ERROR File library uTest: Row index, 2, out of bounds when evaluating instruction CallProc ($FFFFFFFF,$FF,$151B250,$0,'Cells'). Stack content is: [Null,Null,Null,2443979924336...]. Source position: 36,22 Position: 36, 22
|
Cevaplar:
Mesajı Yazan: Eren Ö.
Mesaj Tarihi: 13 Şubat 2026 Saat 17:25
Merhaba Melih.
Aldığınız hatanın nedeni "Out of Bounds", yani olmayan bir hücreye bilgi basmaya çalışmanız. Bu örnekte verilen ve yorum içerisine alınan kod aslında "yanlış" oluyor.
MyGrid.Cells[1, 2] = 'Merhaba'; // Assigns the value 'Hello' to the cell in column 1 and row 2 Hücre sayımı 0'dan başlıyor. Bu kod ise olmayan 3. hücreyi doldurmaya çalışıyor. https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" rel="nofollow - https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{"version":"2024.11.0","token":"439455f3e46c40b98dbd42a2f1a954d8","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}" crossorigin="anonymous">
|
|