Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A bit tricky math problem
Message
 
 
À
26/04/2010 11:36:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01462028
Message ID:
01462045
Vues:
53
>If in the range, the 'rangepart' then becomes - zero offset from tnStart
>
>The StartPos-EndPos can span more than one 'rangepart'
>
>rangepartLow =  int( (StartPos - tnStart)/tnIncrement)
>rangepartHigh =  int( (EndPos - tnStart)/tnIncrement)
>
Sorry, something is wrong here. I got 1 and 0 and I used 10000 as starting point and 50000 as increment.

UPDATE. I changed it to

rangepartLow = ceiling( (StartPos - tnStart)/tnIncrement) * m.tnIncrement
rangepartHigh = ceiling( (EndPos - tnStart)/tnIncrement) * m.tnIncrement
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform