Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strong typing in visual foxpro
Message
De
14/09/2005 10:26:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/09/2005 10:22:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01049322
Message ID:
01049440
Vues:
28
>>Alex,
>>Probably you saw the code. Be honest wasn't it self describing:)
>>Cetin

>
>
>Let's see:
>
> * Parent degistiginde normal olarak tableupdate() olacak veya revert
>
>
>Yes indeed.
>I understand "parent", "normal" and "revert".
>I also understand that other Turkish word: "tableupdate".
>Yep. Very clear to me. <g>

Come on. The method itself is named ParentChanged.
 Procedure parentchanged
    * Parent degistiginde normal olarak tableupdate() olacak veya revert
    * Boylece select-sql dogru sonuc verecek
    Tableupdate(2,.T.,'FatParent')
    Tableupdate(2,.T.,'FatChild')
    External Array arrToplam
    Select Sum(Fiyat*Miktar), Sum(Miktar) ;
      from FatChild ;
      where ParId = FatParent.PkId ;
      into Array arrToplam
    Thisform.txttoplam.Value = Iif(_Tally=0,0,arrToplam[1,1])
    Thisform.txtmiktar.Value = Iif(_Tally=0,0,arrToplam[1,2])
  Endproc
Doesn't method name and code together say "when parent changes you would etiher do tableupdate or revert and thus select-sql would give correct result".
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