Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FILTER and GO
Message
De
11/02/2002 07:50:29
 
 
À
11/02/2002 07:11:41
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00618202
Message ID:
00618233
Vues:
9
Agnes,

What happens if you have both a filter and a filtered order set ?

(I have not considered the grid having a LinkMaster)

may be the best would be
IF BETWEEN(m.lnOldRecNo,1,RECCOUNT()) THEN
    GO (m.lnOldRecNo)

   skip 
   if( !eof() )
      skip -1
   endif
endif
>Gregory,
>
>this looks like a good idea.
>I've extended your code a little bit
>
>IF BETWEEN(m.lnOldRecNo,1,RECCOUNT()) THEN
> GO (m.lnOldRecNo)
> DO CASE
>  CASE DELETED()
>   GO TOP
>  CASE !EMPTY(FILTER())
>   IF !EVAL(FILTER()) THEN
>    GO TOP
>   ENDIF
>  CASE !EMPTY(ORDER())
>*With VFP7.0 or endless work
>   = ATAGINFO(laTags)
>*UPDATED
>   lcTagFilter = laTags(ASCAN(laTags,TAG(),1,0,1,15),4)
>   IF !EMPTY(lcTagFilter) AND !EVAL(lcTagFilter) THEN
>    GO TOP
>   ENDIF
> ENDCASE
>ENDIF
>
>to catch the filter in a TAG and it runs perfectly.
>
>Thanks a lot
>
>Agnes
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform