Home » Developer & Programmer » Forms » how to copy value from an OCX item??
how to copy value from an OCX item?? [message #146789] Sun, 13 November 2005 23:21 Go to next message
ramisy2k
Messages: 150
Registered: April 2005
Senior Member
Hi,

can any one tell me how can i copy the date from the Microsoft date picker control at run time..
I have made an OCX item and then inserted the MS date picker control in layout editor and then run the form
now I want to copy the value of OCX item showing the date to another text item..
can any one tell me how can I achieve this..???
regards,
Re: how to copy value from an OCX item?? [message #146794 is a reply to message #146789] Sun, 13 November 2005 23:32 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
No idea ... search this forum for 'OCX' and 'date picker'. I would suggest using the Oracle Calendar code which you can find under the Forms Sample Applications on OTN.

David
Re: how to copy value from an OCX item?? [message #146796 is a reply to message #146794] Sun, 13 November 2005 23:39 Go to previous messageGo to next message
ramisy2k
Messages: 150
Registered: April 2005
Senior Member
David,
i posted my question after searching the forum but no success..
i have that other calender control but i want to use ths too..
any one having any clue???
regards,
Re: how to copy value from an OCX item?? [message #146850 is a reply to message #146796] Mon, 14 November 2005 03:54 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
ramisy2k wrote on Mon, 14 November 2005 06:39

David,
i posted my question after searching the forum but no success..
Hmm, you must have searched really hard: Here you find an example.

It might not be perfect, but it should give you some clue.

MHE
Re: how to copy value from an OCX item?? [message #146875 is a reply to message #146789] Mon, 14 November 2005 06:25 Go to previous message
ramisy2k
Messages: 150
Registered: April 2005
Senior Member
Thanks Maaher
i succesfully worked out your method and calendar control from the link but that calender is from 1900 to 2099..
I have data whose dates are before 1900


any ways, i tried my own mehthod of calling saving date from the calendar control to a text item.(it is wothout using MSCAL.OCX) about which i mentioned inmy original question)

I have reached to a point where the Programme Units are also compiled but the code on when button pressed trigger for calling the date from calendar is not compiling..

i have attached that form..
if you or any one can just download it and sort out the problem then i would be grateful..

regards,
Previous Topic: Forms 6i: Howto Dock & Anchor
Next Topic: using number in list
Goto Forum:
  


Current Time: Fri Sep 20 03:40:59 CDT 2024