longtime VO code migration to X#
Posted: Sun Jul 16, 2023 9:41 am
Hi Chris (as Mr. XPorter...),
since I'm in the migration process of my VO applications and will be there for a few years (if I'm ever able to exit from it): my main VO library has some code that is incompatible with X# not only in the code part, but also in the function/method declarations.
The VO version of the library is changed sometimes on the VO side, so I need to port it over to X# every few months or so to be compatible.
For differences in the code itself, the #ifdef statement works very well:
But what can I do with code like this?
VO:
X#:
to be compatible between X# and VO?
It would need some tag in the VO code so that the XPorter knows that this VO line has to be commented out, and another tag so that XPorter knows to remove the commend lines.
Wolfgang
since I'm in the migration process of my VO applications and will be there for a few years (if I'm ever able to exit from it): my main VO library has some code that is incompatible with X# not only in the code part, but also in the function/method declarations.
The VO version of the library is changed sometimes on the VO side, so I need to port it over to X# every few months or so to be compatible.
For differences in the code itself, the #ifdef statement works very well:
Code: Select all
otherwise
// not supported
#ifdef __XSHARP__
NOP
#endif
endcase
VO:
Code: Select all
method GetPage( nPage ) class DynamicTabControl
Code: Select all
method GetPage( nPage as usual ) as VO.Window strict
It would need some tag in the VO code so that the XPorter knows that this VO line has to be commented out, and another tag so that XPorter knows to remove the commend lines.
Wolfgang