How to declare object as Vulcan.Net
Posted: Fri Mar 16, 2018 8:01 pm
I'm working on an XSharp project that we converted from VO 2.7. Here is a partial example of a constructor of one of the class in XSharp...
CLASS _QLMerge INHERIT DATAWINDOW
PROTECT oCCRB_MergeDocument AS RADIOBUTTON
//{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
CONSTRUCTOR(oWindow,iCtlID,oServer,uExtra)
self:PreInit(oWindow,iCtlID,oServer,uExtra)
SUPER(oWindow,ResourceID{"_QLMerge",_GetInst()},iCtlID)
oCCRB_MergeDocument := RadioButton{SELF,ResourceID{_QLMERGE_RB_MERGEDOCUMENT,_GetInst()}}
oCCRB_MergeDocument:HyperLabel := HyperLabel{#RB_MergeDocument,"Create a policy merge letter",NULL_STRING,NULL_STRING}
This code compile no problem before I added reference to "System.Windows.Forms" yesterday. After I added "System.Windows.Forms", I get these errors:
'RadioButton' does not contain a constructor that takes 2 arguments
'RadioButton' does not contain a definition for 'HyperLabel' and no extension method 'HyperLabel' accepting a first argument of type 'RadioButton' could be found (are you missing a using directive or an assembly reference?)
'RadioButton' does not contain a definition for 'OwnerAlignment' and no extension method 'OwnerAlignment' accepting a first argument of type 'RadioButton' could be found (are you missing a using directive or an assembly reference?)
How do I declare "oCCRB_MergeDocument" as RadioButton from Vulcan or VO namespace?
Thanks.
CLASS _QLMerge INHERIT DATAWINDOW
PROTECT oCCRB_MergeDocument AS RADIOBUTTON
//{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
CONSTRUCTOR(oWindow,iCtlID,oServer,uExtra)
self:PreInit(oWindow,iCtlID,oServer,uExtra)
SUPER(oWindow,ResourceID{"_QLMerge",_GetInst()},iCtlID)
oCCRB_MergeDocument := RadioButton{SELF,ResourceID{_QLMERGE_RB_MERGEDOCUMENT,_GetInst()}}
oCCRB_MergeDocument:HyperLabel := HyperLabel{#RB_MergeDocument,"Create a policy merge letter",NULL_STRING,NULL_STRING}
This code compile no problem before I added reference to "System.Windows.Forms" yesterday. After I added "System.Windows.Forms", I get these errors:
'RadioButton' does not contain a constructor that takes 2 arguments
'RadioButton' does not contain a definition for 'HyperLabel' and no extension method 'HyperLabel' accepting a first argument of type 'RadioButton' could be found (are you missing a using directive or an assembly reference?)
'RadioButton' does not contain a definition for 'OwnerAlignment' and no extension method 'OwnerAlignment' accepting a first argument of type 'RadioButton' could be found (are you missing a using directive or an assembly reference?)
How do I declare "oCCRB_MergeDocument" as RadioButton from Vulcan or VO namespace?
Thanks.