Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing
Message
 
 
À
26/06/2009 08:55:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01408583
Message ID:
01408623
Vues:
79
>>Here's my take on it
>>
>>lnFirst = 32000
>>lnPageSize = 25
>>lnStart = thisform.txtStart.Value
>>
>>thisform.txtPageno.Value = CEILING((lnStart - lnFirst + 1) / lnPageSize )	
>>
>
>You were close:) I like Ceiling() and use it more in fact too:
>
>
thisform.txtPageno.Value = CEILING((m.lnStart - m.lnFirst) / m.lnPageSize )
>

There's discrepancy in the original data. On one hand record numbers start from 32000. On other hand the first page starts with record # 32001. There's no need to change the formula, only lnFirst has to be adjusted.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform