xsharp.eu • AppClass (LIB ) - migrate from VO28SP4 to X# - Page 2
Page 2 of 2

AppClass (LIB ) - migrate from VO28SP4 to X#

Posted: Tue Sep 21, 2021 7:52 am
by JKCanada604
Hi Chris,

I have sent the 7z file to you directly.

Thank you, keep well and,

Cheers, JK

AppClass (LIB ) - migrate from VO28SP4 to X#

Posted: Tue Sep 21, 2021 8:23 am
by Chris
Hi John,

Thanks for the file! I see the problem, it's a bug in the compiler, it fails because of the multiple declarations of the PRIVATE:

PRIVATE &cVarName

in the function VOSExecute(). Nothing wrong with your code, it's just a compiler problem, I will open a report for Robert to fix this, probably in the coming build. Until this is fixed, you can use a temp workaround, replace the above PRIVATE declarations with this:

__MemVarDecl(cVarName, true)

You will need to make this change in 5 places in this function and then the code will compile without errors! After the compiler fix is released, the you can restore back your previous code with PRIVATE &cVarName

AppClass (LIB ) - migrate from VO28SP4 to X#

Posted: Tue Sep 21, 2021 8:30 am
by Kees Bouw
JKCanada604 wrote:Hi Chris!

Thank you for your great videos!

I really like one of the tricks that you showed us creating a local variable within a method to hold a class so that it can be executed right from the local rather than hunting up the object's methods.. very crafty!
Which video is this exactly? Thanks.

AppClass (LIB ) - migrate from VO28SP4 to X#

Posted: Tue Sep 21, 2021 8:58 am
by Chris