At 01:47 PM 9/10/2010, Dennis McGrath wrote:
Substituting a form to do the work would be the best short
term solution here.
Back in the old days, calling a UDF or designing a custom DLL
was the way to do things in the DOS versions of R:BASE.
However, when you dive into the R:BASE for Windows "R:World",
you would be surprised how easy it is to do those things using
the built-in functions and tools in R:BASE.
For example, your date picker (popdate.exe) UDF can easily be
replaced with built-in (GETDATE('Calendar Caption')) function
without doing major work on your end.
SET VAR vGetDate = (GETDATE('Select Date'))
SET VAR vGetDate = (GETDATE('Select Date|THEMENAME Sports Blue'))
This will bring up the Windows GUI Calendar with today's date
circled in red. Either you can click on OK to accept the
circled date or click on any other date on the calendar using
the current month or scrolling months.
Adding days, months, and years, finding integer day of the year,
integer week of the year, integer days in a month, is it a leap
year?, next working (business) date, and next weekend date are
just a few examples that can be used as built-in functions of
R:BASE!
. (ADDDAY(date,nn))
. (ADDMON(date,nn))
. (ADDYR(date,nn))
. (IDOY(date))
. ((IWOY(date))
. ((IDIM(date))
. (ILY(date))
. (DNW(date))
. (DWE(date))
You may also design your own custom functions/actions and use
the DLCALL to empower your R:BASE for Windows application(s).
Take a look at "Understanding DLCALL in R:BASE" article at:
From The Edge: http://www.razzak.com/fte/
Very Best R:egards,
Razzak.