KMoody
Member
Is it possible to store blank spaces in a character variable?
By default, if a character variable contains only blank spaces, then Progress treats the value as a blank string. For example, the following code would display "yes":
I need to override this feature because I need the ability to search for values that begin with blank spaces:
By default, if a character variable contains only blank spaces, then Progress treats the value as a blank string. For example, the following code would display "yes":
Code:
DEF VAR searchString AS CHAR.
searchString = " ".
DISPLAY (searchString = "").
I need to override this feature because I need the ability to search for values that begin with blank spaces:
Code:
/* ... */
s = queryString + " WHERE STRING(" + hSortColumn:NAME + ") BEGINS """ + searchString + """ BY " + hSortColumn:NAME.
hPopupQuery:QUERY-PREPARE(s).
hPopupQuery:QUERY-OPEN.