| Home | Previous Lesson: Summary Next Lesson: Exercises |
Q: What is an enumerated datatype?
A: A variable of an enumerated data type can be assigned a fixed set of value. Values of enumerated data types always end with an exclamation mark (!).
Q: Can a - (hyphen) be used as part of an identifier name?
A: Yes, but, before using it turn on that option by selecting Design > Options from the menu in the Script Editor window. Otherwise, PowerBuilder generates an error.
Q: What is the character used when a statement is spanned on multiple lines?
A: & (Ampersand).
Q: Is the following statement correct?
String Test
Test = 1000 + "sometext'
A: PowerBuilder implicitly doesn't convert an integer value into a string. You need to explicitly convert it by calling a String().
Q: What is the character used when multiple statements are on a single line?
A: ; (Semicolon)
Q: Which Window Object's property keeps track of all the controls in a window?
A: control[]
Q: Write a script to change the window's title to "This is my practice Window"
A: WindowName.Title = "This is my practice Window"
Q: Write code for hiding the window in two different ways.
A:
Q: What is the maximum number of dimensions an array can have?
A: There is no limit. The limit depends on the computer's memory.
Q: Are Identifiers in PowerBuilder case sensitive or Insensitive?
A: Identifiers in PowerBuilder are not case sensitive.
| Home | Previous Lesson: Summary Next Lesson: Exercises |