Overview
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:
Table of Contents | ||||
---|---|---|---|---|
|
Comparing Strings
Warning |
---|
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.
Code Block | ||
---|---|---|
| ||
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") |
Code Block | ||
---|---|---|
| ||
Dim s as string If (string.Compare( @tag.Test, "abc", true) == 0) Then s = "equal" Else s = "not equal" Endif |
Tip | ||
---|---|---|
| ||
If the CodeBehind is in C# (CSharp) the syntax with the direct is still accepted: Test = "abc" |
Methods Not Available
CINT
RND
Replace by calls to TK or other .NET methods
In this section...
Page Tree | ||||
---|---|---|---|---|
|