PowerBuilder Interview Question and Answers

6. How do you avoid MessageBox “Application is already running”?
  Use Handle() function. Handle() returns the object’s name if the object exists.
 
Your Name Your Email-ID
Your Answer
7. What do you mean Structures and types?
  A structure is a collection of one or more related variable of the same or different data types grouped under a single name.

Global:
Not associated with any objects.

Object Level:
Associated with particular types of windows, menu or user object.

 
Your Name Your Email-ID
Your Answer
8. What are the two structures every application has?
  Every PowerBuilder application has the MessageObject and the ErrorObject. ErrorObject is used to report errors during execution. MessageObject to process messages that are not PowerBuilder-defined events, and pass parameters between windows.
 
Your Name Your Email-ID
Your Answer
9. What are the ways to close your application?
 
  • HALT
  • HALT CLOSE
  • CLOSE
 
Your Name Your Email-ID
Your Answer
10. What is HALT? HALT CLOSE? What is the difference between them?
  HALT :
Halt statement forces the application to terminate immediately. This is most often used to shut down the application after a serious error occurred.

HALT CLOSE :
Halt Close does the same thing but triggers the application object’s Close event before terminating.
 
Your Name Your Email-ID
Your Answer