Jump to content


user22

Member Since 27 Oct 2006
Offline Last Active May 01 2021 01:46 PM
-----

Posts I've Made

In Topic: two dbgrids with the same datasource

22 October 2015 - 07:57 PM

Okay, fine :)

I will see how i can help (very less time, my project is a little bit behind schedule). 


In Topic: two dbgrids with the same datasource

21 October 2015 - 12:39 PM

Hi Boki,

 

sorry for the delay, i had a little accident (now i am okay again).

Here the list, but all is defined in DB.pas ...

 

  TFieldType = (ftUnknown, ftString, ftSmallint, ftInteger, ftWord, // 0..4
    ftBoolean, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime, // 5..11
    ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic, ftFmtMemo, // 12..18
    ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor, ftFixedChar, ftWideString, // 19..24
    ftLargeint, ftADT, ftArray, ftReference, ftDataSet, ftOraBlob, ftOraClob, // 25..31
    ftVariant, ftInterface, ftIDispatch, ftGuid, ftTimeStamp, ftFMTBcd, // 32..37
    ftFixedWideChar, ftWideMemo, ftOraTimeStamp, ftOraInterval, // 38..41
    ftLongWord, ftShortint, ftByte, ftExtended, ftConnection, ftParams, ftStream, //42..48
    ftTimeStampOffset, ftObject, ftSingle); //49..51​

 

I think you should check for types like ftByte, ftWord, ftSmallint, ftInteger, ftAutoinc, ftLargeInt,

ftLongWord and ftShortInt and for this fields set decimal places = 0 and right aligned.

 

Why NULL is not working is another part, TField has an isnull-property, do you use it?

 

best regards 


In Topic: Where is V6 for Delphi XE?

16 October 2015 - 03:58 PM

Hi,

 

i tried to make a demo for you, but Demos are mostly working. So i have to study my Project a little deeper. The funny thing is, that every time i change a little bit, the behavior is different. In the moment i see only the first row, all other rows where always empty.

Other situations are often, that grid is completly empty and i get one error message after another and i have to kill the application.

 

But what i found out: when i have a dbgrid6 connected with a datasorce where the query is active when i press <f9> (= start in Debugging mode), i get immediately "Exception EClassNotFound in Project  test in 00044B46. Class TnxDBNumberColumn6 not found".

Starting the same app and opening the query during runtime works okay.

 

i'll come back when i have found out a little bit more...

 

Kind regards!


In Topic: Where is V6 for Delphi XE?

14 October 2015 - 07:07 PM

Yes, you where right - after adding a reportgridview i see headers and have data in the grid when i run the app.

 

But the Access violation is still here.

And when i open the window with the grid, only the topmost row has data (but my query returns 38 rows), all other rows are empty (filled with Standard value). I have to go down and when i scroll up all values become visible. When i now again scroll down, the new rows scrolling in sight are empty again.


In Topic: Where is V6 for Delphi XE?

14 October 2015 - 06:52 PM

Hi,

 

i was able to install NextSuite 6.

Then tried to create a new NextDbGrid6, but none of my defined columns are visible during designtime in the grid (no headers) ??

 

And when i run the application it throws an error in NxDbColumns6.pas in proc TNxDataBinding.SetField() (row 396) where i get an Access Violation. I have done a Debugging and saw, that this proc is called for every column i have defined. Then immediately once again, but now with Value = Nil. Because FField <> Value it tries to set FFieldName := FField.Fieldname - and this causes the Problem...

 

Maybe you have an idea what's wrong, but now it is not so urgent.

 

Kind regards