Error 14634

Posted by Wolfgang Schölmberger on 10-Oct-2016 03:29

Hi everybody,

OE11.6, Win8

I have a class "DialogExpressionCondition", which has a Method "Create(String,String)" - here the link to the documentaion of this class: help.docuware.com/.../T_DocuWare_Platform_ServerClient_DialogExpressionCondition.htm).

the following code gives error 14634 ("static member  <name> mujst be accessed via a class name, not via an object reference") when I try to run it:

Condition = NEW Docuware.Platform.ServerClient.DialogExpressionCondition().

Condition:Create("Field", "Value").

What am I doing wrong ?

 

,

Posted by Frank Meulblok on 10-Oct-2016 04:05

As per the documentation for the class Create() is a static method which returns a DialogExpressionCondition instance.

And as the error message states, a static member must be accessed via a class name.

Correct code should be:

Condition = Docuware.Platform.ServerClient.DialogExpressionCondition:Create("Field", "Value").

All Replies

Posted by Frank Meulblok on 10-Oct-2016 04:05

As per the documentation for the class Create() is a static method which returns a DialogExpressionCondition instance.

And as the error message states, a static member must be accessed via a class name.

Correct code should be:

Condition = Docuware.Platform.ServerClient.DialogExpressionCondition:Create("Field", "Value").

This thread is closed