Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Auto Fill
Message
De
05/01/2006 16:58:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/01/2006 15:26:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01083029
Message ID:
01083814
Vues:
15
>>>>Dear Sir,
>>>>
>>>>Please send some details about following codes
>>>>
>>>>lnRecords = max(ceiling(reccount()/10),1)*10
>>>>
>>>>how does it work?
>>>>
>>>>Thanks
>>>MAX(a,b) ---> select the higher of two values
>>>CEILING(n) ---> round up to the next integer (2.1 becomes 3, an integer stays as is)
>>>RECCOUNT() ---> number of records in the table
>>>
>>>Assume 65 records in table.
>>>MAX(CEILING(RECCOUNT()/10),1)*10
>>>MAX(CEILING(65/10),1)*10
>>>MAX(CEILING(6.5),1)*10
>>>MAX(6,1)*10
>>>6*10
>>>so the expression evaluates to 60
>>
>>Right. A slight typo correction:
>>
>>MAX(CEILING(6.5),1)*10
>>MAX(7,1)*10
>>7*10
>>
>>Cetin
>
>DUH!!!!!!!!!!! Somehow I just KNEW when I was typing that I would do something foolish like that! Just proves the old adage.......never proof-read your own work.

I knew that you knew - IOW was sure it was a typo:) You were not online and I just thought it might be confusing for a reader.
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