Although stricter compiler enforcement for the .NET environment can catch coding errors typically tolerated by the PowerScript compiler, the .NET environment might also require changes in application design that are not necessarily caught by the compiler.
PowerBuilder Web Forms use a virtual file system to emulate a file system on the server for each client. The virtual file system is actually a folder on the server computer to which the ASPNET user (IIS 5), the IIS_WPG user group (IIS 6), or the IIS_IUSRS user group (IIS 7 and 7.5) has write permission. Calling an external function to get the current directory from the virtual file system fails.
The .NET garbage collection service does not trigger the Destructor event for PowerBuilder objects. If you need to trigger the Destructor event for a nonvisual object, you must explicitly call the PowerScript DESTROY statement for that object.
The PBCultureSource global property determines whether a .NET Web Forms application uses client or server regional settings. Client regional settings are specified by the first language listed in the Language Preference dialog box of the Internet Explorer browser. However, if you set PBCultureSource to “client” and no language is listed in the Language Preference dialog box, server-side regional settings are used instead.
Server regional settings are those set for the ASP.NET user or user group on the server computer. You can use the IIS Manager to change the default regional settings in the Globalization section of the Web.config files for your Web Forms applications, or you can modify the Web.config files manually after you deploy your applications.
DatePicker control using the DtfLongDate!, DtfShortDate! or DtfTime! format
EditMask control when the mask contains a [DATE], [TIME], or [CURRENCY [{digit number}] format
MonthCalendar control
System String (v) function when the data argument datatype is Date, Time, or DateTime (the formats for these datatypes are [SHORTDATE], [TIME], or [SHORTDATE][TIME], respectively)
System String (v, f) function when the format argument is [SHORTDATE], [LONGDATE], [DATE], [TIME], or [DATETIME]
You can set the PBCultureSource global property on the Configurations tab in the Web Forms Project painter before you deploy a project. By default, applications use the regional settings specified by the Web Forms server.
If you want to test whether a string’s value contains any of a multiple set of matching text patterns, you can use the pipe character ( | ) in your .NET applications or components. The pipe character is a metacharacter in the .NET environment that functions as an OR operator, although it is not a metacharacter in the standard PowerBuilder client-server environment.
Therefore, when you call the Match function in the .NET environment, you can use pipe characters to determine if either of two (or one of many) text patterns match a string you are evaluating. In standard client-server applications, you can use the Match function to evaluate only one text pattern at a time.
For example, if the code in an unsupported event changes the value of an instance variable, it can affect the logic flow in a supported event that uses that variable. Remove this type of coding from unsupported events.
Hiding a response window in a Web Forms application does not work properly and can cause the application to fail. Instead of hiding a response window, always close it when the user has finished with it.