In non-grid field-controls I've used date fields with 'FORMAT'='YL'
(this being Windows long date format). This is rough because of Window's 'Region' variances in Control Panel.
I've tried the below expression and it fails with error message "Not a variable reference":
LEFT(cDOW(myTable.datefield),3)+", "+LEFT(cmonth(myTable.datefield),3)+" "+ALLTRIM(STR(DAY(myTable.datefield)))+", "+right(ALLTRIM(STR(YEAR(myTable.datefield))),2)
Worse yet, when I try to get a VALUE of a date control (in a non-grid control) it always yields the DATE itself instead of the visible value:
i.e., wait window (this.control.value) produces "11/02/2004" instead of the visible value "Tue, Nov 2, 04" (resulting from the YL format).
In sum: I'm searching for a way to make non-grid controls really look like:
LEFT(cDOW(myTable.datefield),3)+", "+LEFT(cmonth(myTable.datefield),3)+" "+ALLTRIM(STR(DAY(myTable.datefield)))+", "+right(ALLTRIM(STR(YEAR(myTable.datefield))),2)
or else for the date-control.width to adjust to "YL" (format).
Thanks always,
Philip
(this being Windows long date format). This is rough because of Window's 'Region' variances in Control Panel.
I've tried the below expression and it fails with error message "Not a variable reference":
LEFT(cDOW(myTable.datefield),3)+", "+LEFT(cmonth(myTable.datefield),3)+" "+ALLTRIM(STR(DAY(myTable.datefield)))+", "+right(ALLTRIM(STR(YEAR(myTable.datefield))),2)
Worse yet, when I try to get a VALUE of a date control (in a non-grid control) it always yields the DATE itself instead of the visible value:
i.e., wait window (this.control.value) produces "11/02/2004" instead of the visible value "Tue, Nov 2, 04" (resulting from the YL format).
In sum: I'm searching for a way to make non-grid controls really look like:
LEFT(cDOW(myTable.datefield),3)+", "+LEFT(cmonth(myTable.datefield),3)+" "+ALLTRIM(STR(DAY(myTable.datefield)))+", "+right(ALLTRIM(STR(YEAR(myTable.datefield))),2)
or else for the date-control.width to adjust to "YL" (format).
Thanks always,
Philip