Unable to cast object 'bBrowser.bDataColumn' to type 'bBrowser.bVirtualColumn'
Posted: Fri Feb 18, 2022 5:01 pm
Hello Everyone,
I've ran into some issues that seem unclear to me.
Error: Unable to cast object of type 'bTools.bBrowser.bDataColumn' to type 'bTools.bBrowser.bVirtualColumn'.
Regarding the following code in Xsharp:
What I find fascinating is that this (Runtime)Error is only visuable when my application crashes. Why does this code compile but leads to a RunTimeError. Shouldn't the compiler recognize this problem and warn me about this?
My second issue is that this code works in VO but in Xsharp it leads to crashing the application.
Any help or guidance is greatly appreciated
Frank
I've ran into some issues that seem unclear to me.
Error: Unable to cast object of type 'bTools.bBrowser.bDataColumn' to type 'bTools.bBrowser.bVirtualColumn'.
Regarding the following code in Xsharp:
Code: Select all
local oColumn as bVirtualColumn
local oKolom as bDatacolumn
oColumn := oBrowser:GetColumn(#AdresInfo)
oColumn:DataView := bViewStyle{,,BALIGN_CENTER,oFont}
oColumn:CaptionView := bViewStyle{,,BALIGN_CENTER,oFont}
oColumn:background := KleurB(WINDOWGRIJS,2)
My second issue is that this code works in VO but in Xsharp it leads to crashing the application.
Any help or guidance is greatly appreciated
Frank