Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Surrounding Code in a .NET Block – PB Docs 126 – PowerBuilder Library

Surrounding Code in a .NET Block – PB Docs 126


Surrounding Code in a .NET Block

Because the main PowerBuilder compiler does not recognize the classes
imported from .NET assemblies, you must surround the code referencing those classes in a
conditional compilation block for a .NET application.

For example, to reference
the .NET message box Show function, you must
surround the function call with preprocessor statements that hide
the code from the main PowerBuilder compiler:

The PBDOTNET symbol can be used for all types of .NET targets supported by
PowerBuilder. You can also use the following symbols for specific types of .NET targets:
PBWINFORM, and PBWEBSERVICE.

You can paste preprocessor statements into the Script view.
Select Edit > Paste Special > Preprocessor and select the statement
you need.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x