OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

UShort & Date

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
bentperspective
Newbie
Newbie


Joined: 22 Apr 2009
Posts: 1

PostPosted: Tue May 05, 2009 3:28 pm    Post subject: UShort & Date Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group