Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I hate it, when it happens!
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00576933
Message ID:
00577041
Vues:
17
>
>********************************************************************
>*  Description.......: UpdateDSLastReceiv
>*  Calling Samples...: 
>*  Parameter List....: 
>*  Created by........: Nadya Nosonovsky 11/02/2001 02:45:39 PM 
>*  Modified by.......: Nadya Nosonovsky 11/02/2001 02:45:40 PM
>********************************************************************
>local lcState, ldDate, lnSelect
>ldDate = date()
>lnSelect = select()
>if vartype(oJC)="O"
>   lcState = oJC.CurState
>else
>   lcState = "MA"
>endif
>select Towns.ccode, Towns.rcode, iif(m.lcState="MA",space(4),town) ;
>       from (oAppender.pOutputFile) tbl ;
>       inner join Towns on tbl.Town = Towns.town ;
>       group by 1, 2, 3 into cursor curTemp
>scan
>   if seek(ccode + rcode + town +"T","DataSource","crtwntype")
>      replace DataSource.LastReceiv with m.ldDate in DataSource
>   endif
>endscan
>use in curTemp
>select (m.lnSelect)
Here is a tip I learned at WhilFest this week to close a table without getting error. Instead of this code:
if used('mytable')
   use in mytable
endif
Someone showed this:

Use in select('mytable')
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform