General information
Category:
Object Oriented Programming
Title:
Using .NewObject method
Hi,
I have the following code in a custom method:
Local cPathToObject
cPathToObject = "This.frmOESWAdmin.pgfOESWAdmin.pgeShifts." <--(I'm lazy)
&cPathToObject.NewObject("oleShiftCalendar","oleCalendar","BaseControls")
&cPathToObject.oleShiftCalendar.Height = 286
&cPathToObject.oleShiftCalendar.Left = 472
&cPathToObject.oleShiftCalendar.Top = 18
&cPathToObject.oleShiftCalendar.Width = 301
&cPathToObject.oleShiftCalendar.ShowDateSelectors = .T.
&cPathToObject.oleShiftCalendar.Visible = .T.
My question is, can I also put code in the calendar's right click method here or do I have to include it in the class this is based on ?
PS: Really looking forward to the WhilFest to get some "face to face" on things like this.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only