bentperspective Newbie

Joined: 22 Apr 2009 Posts: 1
|
Posted: Tue May 05, 2009 3:28 pm Post subject: UShort & Date |
|
|
I am trying to insert a Date object into a base table using individual values retrieved from a form.
I can get the values from the form and
I can insert a Date object into the table if I create the Date object as below
| Code: | dateValueObj = createUnoStruct("com.sun.star.util.Date")
dateValueObj.Day = 12
dateValueObj.Month = 5
dateValueObj.Year = 1967 |
If I then take a value from the form I can not set the Date object fields (Day, Month, Year) because the values are Integers and not Unsighed Short.
How do I create an Unsighed Short from an Integer? |
|