Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Auto Fill
Message
De
04/01/2006 06:44:48
 
 
À
04/01/2006 05:29:12
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:
01083050
Vues:
15
Try this:
LOCAL i,lnMaxValue,lnAppend,lnRec

lnRec = 12 			&& 0,6,12,37

FOR i = 1 TO 10
	lnMaxValue = i*10
	IF m.lnRec < lnMaxValue
		EXIT
	endif
ENDFOR

lnAppend = m.lnMaxValue - m.lnRec

FOR i = 1 TO m.lnAppend
	APPEND BLANK 
endfor
>Dear Experts
>
>I want to fill table with blank records, with 10 records division, such as
>
>If Table has 0 records then 10 blank recods should automatically appended
>If Table has 6 records then 4 blank recods should automatically appended
>If Table has 12 records then 8 blank recods should automatically appended
>If Table has 37 records then 3 blank recods should automatically appended
>And so on…….
>
>Please help
Manoj Karki
manoj0karki@yahoo.com
Nepal
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform