Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error with Date Time Picker Displayed

Status
Not open for further replies.

TSWA

IS-IT--Management
Sep 27, 2001
66
PA
Hello, I have a problem with Date Time Picker object. I have a form with pageframe and 9 pages and I have command buttons to controls the records (next,back,new,etc.). When I am in whatever page and click the button for new record, the focus goes to the main page(Page #1) and refresh the values of the page. When I click for New Record and the page contain the object for date time picker, the focus goes to the main page but the objects for date time picker is displayed with the objects of the main Page. Somebody knows about this error.

Thanks,

Marlon
 
TSWA

, the focus goes to the main page but the objects for date time picker is displayed with the objects of the main Page.

Can you explain further? Do you mean to say that your datetime picker appears on a page that it souldn't appear on? Is it possible that your datetime picker is not on an actual page, but rather "on top" of the pageframe? (Where it would appear on all pages. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hello Mike,

I am using the following OS and VFP:
OS: Windows 2000 Pro
SP: 2

Visual Foxpro 6.0
SP: 5

The object of the DTP was defined into the Page8. When the value change(Method Change Event), I replace the Table value from the DTP Object Value(REPLACE INCIDENT1.HORAINIR WITH THISFORM.PAGEFRAME1.PAGE8.OLEDTP1.object.VALUE)

The code for NEW Command Button is:

THISFORM.PAGEFRAME1.PAGE1.SETFOCUS && Focus to Main page
THISFORM.PAGEFRAME1.PAGE1.CLICK() && Execute the Click on of this page

SELECT INCIDENT1 && Add new Record to Table
STORE INCIDENT1.INCIDENTE+1 TO nuevoregistro && Sequential Number
INSERT INTO INCIDENT1 (INCIDENTE) VALUE (nuevoregistro)

THISFORM.REFRESH

When I Click for new Record to the Table from other page(not Page8), the Information of the Main Page(no others objects) is displayed.

Thanks in advance,

Best Regards from Panama,

Marlon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top