fkinternalcalc are normal fields
==========================
We used ones for storing data not related to SQL-data - boolean
switches for records (for group selections) etc. Two my big projects
are based on this feature.
Today, "OnChanged" event handler (see below) for fkInternalCalc-field
can't be reached since exception about non edit/insert state preceeds
it.
procedure tdmmainmo.f18selchanged(Sender: TField);
begin
with sender do begin
if asboolean then
inc(f18monthscount)
else
if f18monthscount > 0 then inc(f18monthscount,-1);
end;
if mainfo <> nil then mainfo.f18indexchoicereenablecheck(f18monthscount > 0);
end;
The excetion stack :
#0 0040B416 :0 fpc_raiseexception()
#1 0054805C :0 MDB_DATABASEERRORFMT$ANSISTRING$array_of_const$TCOMPONENT()
#2 005B06A3 :0
MSEBUFDATASET_TMSEBUFDATASET_$__GETFIELDBUFFER$TFIELD$BOOLEAN$LONGINT$$POINTER()
#3 005B0EB7 :0
MSEBUFDATASET_TMSEBUFDATASET_$__SETMSESTRINGDATA$TMSESTRINGFIELD$UNICODESTRING()
#4 0055FA77 :0 MSEDB_TMSESTRINGFIELD_$__SETASUNICODESTRING$UNICODESTRING()
#5 0043AF2B dmmain.pas:660
TDMMAINMO__F18MONTHLISTCALCFIELDS(DATASET=0xa07b8, this=<error reading
variable>)
#6 0054A44E dmmain.pas:0 MDB_TDATASET_$__DOONCALCFIELDS()
#7 005B9E0D dmmain.pas:0
MSEBUFDATASET_TMSEBUFDATASET_$__CALCULATEFIELDS$PCHAR()
#8 0054A59B dmmain.pas:0 MDB_TDATASET_$__GETCALCFIELDS$PCHAR()
#9 0054CB4E dmmain.pas:0 MDB_TDATASET_$__EDIT()
#10 0055A09C dmmain.pas:0 MDB_TDATASOURCE_$__EDIT()
#11 005594B0 dmmain.pas:0 MDB_TDATALINK_$__EDIT$$BOOLEAN()
#12 00510A55 dmmain.pas:0
MSEDBEDIT_TCUSTOMEDITWIDGETDATALINK_$__EDIT$$BOOLEAN()
#13 00510B27 dmmain.pas:0 MSEDBEDIT_TCUSTOMEDITWIDGETDATALINK_$__MODIFIED()
#14 00513147 dmmain.pas:0 MSEDBEDIT_TDBBOOLEANEDIT_$__MODIFIED()
#15 005A12CD dmmain.pas:0 MSEGRAPHEDITS_TGRAPHDATAEDIT_$__VALUECHANGED()
#16 005A233A dmmain.pas:0
MSEGRAPHEDITS_TCUSTOMBOOLEANEDIT_$__SETVALUE$BOOLEAN()
#17 005A1FE6 dmmain.pas:0
MSEGRAPHEDITS_TCUSTOMBOOLEANEDIT_$__INTERNALCHECKVALUE$formal$BOOLEAN()
#18 005A0967 dmmain.pas:0
MSEGRAPHEDITS_TGRAPHDATAEDIT_$__DOCHECKVALUE$formal$$BOOLEAN()
#19 005A2039 dmmain.pas:0
MSEGRAPHEDITS_TCUSTOMBOOLEANEDIT_$__TOGGLEVALUE$BOOLEAN$BOOLEAN()
#20 005A1ADB dmmain.pas:0
MSEGRAPHEDITS_TTOGGLEGRAPHDATAEDIT_$__MOUSEEVENT$MOUSEEVENTINFOTY()
#21 0042AF0C msegui.pas:13597 TWINDOW__DISPATCHMOUSEEVENT(INFO={MOUSE
= {EVENTKIND = EK_BUTTONRELEASE, SHIFTSTATE = [], POS = {X = 30, Y =
6}, EVENTSTATE = [], TIMESTAMP = 3479817816, BUTTON = MB_LEFT}, WHEEL
= {EVENTKIND = EK_BUTTONRELEASE, SHIFTSTATE = [], POS = {X = 30, Y =
6}, EVENTSTATE = [], TIMESTAMP = 3479817816, WHEEL = MW_UP, DELTA =
0}}, CAPTURE=0xce968, this=<error reading variable>)
#22 0042E673 msegui.pas:15240
TINTERNALAPPLICATION__PROCESSMOUSEEVENT(EVENT=0x40039f8, this=<error
reading variable>)
#23 004305C6 msegui.pas:16172
TINTERNALAPPLICATION__EVENTLOOP(ONCE=false, this=<error reading
variable>)
#24 00431A47 msegui.pas:16767
TINTERNALAPPLICATION__DOEVENTLOOP(ONCE=false, this=<error reading
variable>)
#25 00477245 mseapplication.pas:1607
TCUSTOMAPPLICATION__RUN(this=<error reading variable>)
#26 00402312 podpiska.pas:41 main()
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk