Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Divide variable into parts
Message
De
05/11/2007 10:03:31
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
05/11/2007 03:39:21
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 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01266627
Message ID:
01266695
Vues:
10
>>Dear Experts
>>
>>myid=31206-1653228-5
>>
>>It is character type variable.
>>I wnat to devide it into FIFTEEN parts, every character will be a new variable as
>>
>>var1=3
>>var2=1
>>var3=2
>>
>>How is it possible
>>
>>Please help
>
>Don't use fifteen variables, use an array.
>
>myid="31206-1653228-5"
>Declare var(Len(myid))
>For x=1 to len(myid)
>  var(x)=Substr(myid,x,1)
>EndFor
Now this was one thing that was simpler to do in Cobol... because you had to define your records, and could redefine any field in it in any number of levels.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform