Default Instance
Hello,
i have declared a RTTI object and registred it with
"raRegisterRTTI(TmyTBtnCapsRTTI)". Is it possible to tell RB that it should
instance a global variable like "BtnCaps" in each report automatricly.
Otherwise the user has to create it in every report like
"BtnCaps:=TBtnCaps.Create"?
--
best regards
chris (EULANDA)
www.eulanda.com
ERP SOLUTIONS
i have declared a RTTI object and registred it with
"raRegisterRTTI(TmyTBtnCapsRTTI)". Is it possible to tell RB that it should
instance a global variable like "BtnCaps" in each report automatricly.
Otherwise the user has to create it in every report like
"BtnCaps:=TBtnCaps.Create"?
--
best regards
chris (EULANDA)
www.eulanda.com
ERP SOLUTIONS
This discussion has been closed.
Comments
What are you trying to accomplish? What type of feature/functionality are
you trying to provide to the users?
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
actually i have the follwoing situation:
1. I declare a global Variable "btnCaps" from Type "TBtnCaps".
2. In ReportBeforePrint i craete the object with
"BtnCaps:=TButtonCaps.Create".
3. In Report.After Print i make it free. "BtnCaps.Free".
So in the Report i can use a lot of translation functionality. The Object
gives Strings like "BtnCaps.Retry" and so on. all are published properties.
Because it is a basic functionality in my forms, it would be great, when
point 1-3 must not be declared in each report. So my question, is there a
possibility to do a registration of an instance, so i can use it in thge
report elsewhere without step 1-3.
--
best regards
chris (EULANDA)
www.eulanda.com
ERP SOLUTIONS
--
best regards
chris (EULANDA)
www.eulanda.com
ERP SOLUTIONS