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

C0313 Compiler Error – PB Docs 2021 – PowerBuilder Library

C0313 Compiler Error – PB Docs 2021

C0313 Compiler Error

Message text

Static member name cannot be accessed with an instance reference.
Qualify the static member with a type name.

Explanation

To access a static variable in a .NET class in a conditional
compilation clause, you must use a type name, not a reference to an
instance of the class. This example uses a simple public class Department
that is in the .NET assembly PBInterop.dll. Department has two member
variables: public string Name and public static int ID. In the following
example, the attempt to access the static variable ID using an instance of
the Department class generates C0313:

This example deploys without error because the type name of the
class is used to access the static variable:

See Also

C0312 Compiler Error


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