PowerBuilder Interview Question and Answers

51. What are Extended column attributes? How can you change them dynamically?
  It’s DataWindow object property (Expressions) which we can change dynamically using Modify() function.
 
Your Name Your Email-ID
Your Answer
52. What is a code table?
 
  • Specifies whether PowerBuilder uses the code table for the column to validate data.
  • Values are Boolean: True–Uses code table to validate data; False–Does not use code table to validate data.
  • The appearance of the text is specified by the edit mask.
  • Each row in the Code Table is a pair of corresponding values: a display value that user sees and data values-those that are saved in the database.
  • Code Tables are used with DropDownListBox and RadioButtons.
 
Your Name Your Email-ID
Your Answer
53. How can you modify a code table during execution?
  Using GETVALUE() and SETVALUE() functions.
 
Your Name Your Email-ID
Your Answer
54. How do you get the name of a DropDownDataWindow?
  GetChild()
 
Your Name Your Email-ID
Your Answer
55. How do you trap errors from the DataBase in the DataWindow?
  Write some code in the DBError Event
For example:
IF SQLCA.SQLCode <> 0 THEN
MessageBox()
return 1
END IF
 
Your Name Your Email-ID
Your Answer