Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
maxLevel3
stylenone


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
titleDisplays Expressions Examples
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
titleVB.Net CodeBehind Example
Dim s as string
If (string.Compare( @tag.Test, "abc", true) == 0) Then
   s = "equal"
Else
  s = "not equal"
Endif


Tip
titleC# Code Behind

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
root@parent
spacesV10