Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Separate a group of number
Message
De
14/05/2019 03:26:00
 
 
À
14/05/2019 00:56:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01668589
Message ID:
01668591
Vues:
64
>what is the easiest way to separate a group of numbers into fields?
>this is for disc% (up to 8 levels)
>
>eg:
>2+5+6+2+4+7+4
>
>into:
>
>disc[1]= 2
>disc[2]= 5
>disc[3]= 6
>disc[4]= 2
>disc[5]= 4
>disc[6]= 7
>disc[7]= 4
>disc[8]= 0
>
>Thank you
>
>Jerry Yang
lcString = '2+5+6+2+4+7+4'
ALines(Disc,lcString,0,'+')
If the array must have 8 elements each time:
lcString = '2+5+6+2+4+7+4'
lcString = Padr(lcString,15,'+0')
ALines(Disc,lcString,0,'+')
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform