LANGUAGES | POWER BUILDER | POWER BUILDER INTERVIEW QUESTION AND ANSWERS - 19

PowerBuilder Interview Question and Answers:

96.     What is the differents between EVENT and FUNCTION in PowerBuilder?
     
      EVENT                                                                                FUNCTIUON
1.     An action in an object or control that can trigger a script.     A program or rutine that performs specific process.

2.     Top-Down approach     Bottom-Up approach

3.     Event has User Event and System or Built-in Event.             Function has System Function, Object Function, User Define Function, Global Function, Local External Function, Global External Function and Remote Procedure call (RPC).

4.     Event has Public default Access Level                               Function can declare Public, Private and Protected Access Level.

5.     Event has PassByVal, PassByRef and ReadOnly.               Function has PassByVal, PassByRef and ReadOnly.

6.     Event can call Object Events Dynamically or Statically.      Function can call Object Level Function Dynamically or Statically.

7.     We can POST or TRIGGER an Event call.                        We can POST or TRIGGER a Function call

8.     Events are associated only with objects.                           Function can be Global or part of an object’s definition.

9.     Call an undefined event does not trigger an error.             Call an undefined function triggers an error.

10.     Event cannot be Overloaded                                         Object-Level  Function can be OverLoaded.

11.     Events either return a value or do not have a return value.     Function always has return value.

No comments:

Post a Comment