HP Forums

Full Version: Entering dates into a user program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: XJWjO9c.jpg]

This screen shot is from the finance app - bond calculations.

Date entry is efficient (Settlement Date and Maturity Date).

At startup, the last date value is displayed. If running several bond scenarios one or both date values may not change from the previous entries. If so, the date is already populated.

If a date does change the user can (1) use the edit soft key or (2) select today's date using a soft key or (3) use the calendar icon to select a date.

With practice dates can be quickly entered compared to my own date entry code using msgbox.

In reading the programming chapter I found msgbox examples but did not see a way to duplicate the finance app method of entering dates.

Is it available so that I can use it in my own programs?

Thanks
From here: http://holyjoe.org/hp/PrimeVars.htm

You can find:

DateOne stores the first date used in a date calculation. Use the format YYY.MMDD n ► DateOne, where n is YYYY.MMDD, sets the value of DateOne to n.

DateTwo stores the second date used in a date calculation. Use the format YYYY.MMDD n ► DateTwo, where n is YYYY.MMDD, sets the value of DateTwo to n.

Helpful?

-Dale-
yes, the list is helpful. will keep it handy.

System date is also available. One can even create new app variables using AVars.

In the meantime, I programmed the customizing an app example in the programming chapter of the manual.

Not sure modifying an app works for me but learned a bunch.

Going to study the other programming examples in the chapter.

Thanks
Have you looked at the new CHOOSEDATE command? Can't do 2 at once, but should be quite quick.
No I had not seen choosedate. Ran a short example Looks like it is used in the financial app.

That gives me a user interface method to use for date entry.

Thanks
Reference URL's