On creating displays for web deployments (Portable or HTML5 displays), CodeBehind and expressions on the graphical elements, are compiled to .NET 8.
This brings some incompatibilities with code created only for WPF, which are presented in this section.
On this page:
The Net.8 compiler for VB.NET CodeBehind and embedded expressions won't accept the simplified syntax: if ( Tag.test = "ABC", ..... |
When you need to compare string the script.Compare() method should be used.
If (string.Compare( tag.Test, "abc") == 0, "equal", "not equal") If (string.Compare( tag.Test, "abc", true) == 0, "equal", "not equal") If (string.Compare( tag.Test, "abc", StringComparison.OrdinalIgnoreCase) == 0, "equal", "not equal") |
Dim s as string If (string.Compare( @tag.Test, "abc", true) == 0) Then s = "equal" Else s = "not equal" Endif |
If the CodeBehind is in C# (CSharp) the syntax with the direct is still accepted: Test = "abc" |
CINT
RND
ServiceController
Replace by calls to TK or other .NET methods