Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using .NewObject method
Message
De
05/09/2001 11:01:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00552519
Message ID:
00552522
Vues:
21
>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.
with This.frmOESWAdmin.pgfOESWAdmin.pgeShifts && Not for I'm lazy too
  .NewObject("oleShiftCalendar","oleCalendar","BaseControls")
  with .oleShiftCalendar
    .Height = 286
    .Left   = 472
    .Top    = 18
    .Width  = 301
    .ShowDateSelectors = .T.
    .Visible = .T.
  endwith
endwith
You should put code in either in class or on instance of form.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform