0

I'm trying to change a property of a class with a setter method. But when I want to use the setter, I'm getting an error.

I generated the setter method automatically by using Windev;

PROCÉDURE PUBLIQUE p_NuméroBDD(nValeur est un entier)

:m_NuméroBDD=nValeur

When I want to use the setter: :m_pclHoraires.p_NuméroBDD(:m_nNuméroBDD)

It says, unknown procedure

Proteeti Prova
  • 1,079
  • 4
  • 25
  • 49
Jay Cee
  • 11
  • 3

2 Answers2

2

Did you try this ?

:m_pclHoraires.p_NuméroBDD = nNuméroBDD
WaLinke
  • 726
  • 2
  • 6
  • 25
0

Properties in Windev are quite similar to C# properties : When you create getters and setters, you are able to use them as members, not as methods.

So as said previously, the correct way to call your setter is to set object.p_NuméroBDD with your value.