Hello,
I haven't found any reported issues with the isDate() function, so I'm posting here to see if others experience the same results before I submit this as an Appeon defect.
It appears that the isDate() function will return FALSE when the Windows date format is set to something other than dd-MMM-YYYY, or dd-MMM-YY or dd/mm/yyyy.
For example, if the Windows date format is set to dd-MMM-YYYY, then the following will return TRUE:
isDate('01-Apr-2019')
But if you change the Windows date format to something like mm/dd/yyyy, then the same function:
isDate('01-Apr-2019')
will return FALSE.
I've attached an .srd file that demonstrates this issue. All you have to do is change your Windows date format and open the datawindow in the painter.
This is happening in PowerBuilder 2017 R2 Build 1769
Please let me know what you find.
Kind Regards,
Greg
Yes, we got around this with my Canadian Federal government clients when I was an independent consultant. Many of the PB App's were sent out to various embassy's around the world where the host MS-Windows O/S regional settings were not like we use in North America. We got around various formatting and data export/import issues by having the PB App change the regional settings to North American when the App was "active" and restore the original regional settings when the App was deactivated and/or shutdown. If I recall correclty, this was all done via registry setting changes.
For example ...
RegistrySet( "HKEY_CURRENT_USER\Control Panel\International", &
"sShortDate", RegString!, ls_DateFormat)
Note: I have not tested this with Appeon PB and MS-Windows 10. Used to work in PB 12.x and W7.
HTH
Regards ... Chris
It was just a "work around" suggestion.