mehmet07 Posted August 17, 2017 Share Posted August 17, 2017 Merhabalar, Blob(text) turunde tablomda bir alanım var. Bu alandaki değeri gridde gostermek için gridin ilgili sutununda "Display Memo" değerini "True" yapiyorum. Uygulamayı calistirdigimda eger o sutunda veri yoksa aşağıdaki hatayı aliyorum. UniDBGrid1:TUniDBGrid:Could not convert variant of type (Null) into type (OleStr) Bu hata uzerine forma bir adet UniHiddenPanel ekledim. Üzerine de UniMemo bileseni koydum. Gridin ilgili sutunun "Editor" ozelliğinden unimemo bilesenini sectim. Bu defa hata vermiyor ama gridde etkilenmemiş gorunuyor. ilgili sutunda "(Memo)" seklinde bir değer gosteriyor. Gridde blob alanları nasil gosterebilirim. Teşekkürler. Kullandığım unigui version: 1.0.0.1391 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 17, 2017 Administrators Share Posted August 17, 2017 uniDBGrid.pas'da şu değişikliği yapın: if IsMemo then begin if AField.IsNull then S := '' else S := StrToJS(AField.Value); end Link to comment Share on other sites More sharing options...
mehmet07 Posted August 17, 2017 Author Share Posted August 17, 2017 Teşekkürler Farshad bey. Deneyecegim. Link to comment Share on other sites More sharing options...
mehmet07 Posted August 17, 2017 Author Share Posted August 17, 2017 Soylediğiniz sekilde yapınca expected expression, got ',' Önceki hata değişti şimdide yukarıdaki hatayı vermeye basladı. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 17, 2017 Administrators Share Posted August 17, 2017 if IsMemo then begin if AField.IsNull then S := StrToJS('') else S := StrToJS(AField.Value); end Link to comment Share on other sites More sharing options...
mehmet07 Posted August 17, 2017 Author Share Posted August 17, 2017 Son yazdığınız kodu denedim aynı hatayı vermeye devam ediyor. expected expression, got ',' Ayrıca son gonderdiginiz kod duzenlemesini yaptıktan sonra Form acilirken Could not set cell position: row: [0], column:[0] :a is undefined hatasını verip gridde hic kayit gorunmuyor. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 17, 2017 Administrators Share Posted August 17, 2017 O zaman hata başka bir yerdedir. Bize bir test uygulaması yollamanız lazım. Link to comment Share on other sites More sharing options...
mehmet07 Posted August 23, 2017 Author Share Posted August 23, 2017 Sorun duzeldi. Son gonderdiginiz duzeltme kodunu yazarken bir noktayi silmisim yanlislikla . Suan duzeldi . Teşekkürler. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now