scope resulation operator

what is the use of scope resulation operator (::slight_smile: in programming part with example.

Hi Taukeer,

Whenever you call static method either from class or table, we need to call that using scope resolution(i.e, ::).

If you look at PurchTable, you will find that it contains find method which is static and suppose if you gonna call it in other class or any table or form, without any declaration you can easily call it just by scope operator(::slight_smile:

Ex. purchtable::find("Po_2323);

Similarly we can have static method in class and that too can be called in any form or table without any declaration.

Hi taukeer,

there are two puposes of scope resolution operator is …

  1. when u create a staic method by using static keyword… in either tables(custtable —example) or classes(salesformletter)…

in order to cal those methods we use scope resolution operators…

like … custtable::find(…);

salesformletter::main(…);

provide the args … that are necessary in order to call those methods…

  1. in order to provide enum values or compare values i mean…

there is a salesstatus…

we call using salesstatus::openorder …and in the same way to comparing the enums…