Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Divide variable into parts
Message
De
09/02/2008 00:47:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/02/2008 00:38: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 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01266627
Message ID:
01291018
Vues:
9
>Dear Professors
>
>My problem still not solved.
>
>Here I try again to clear the point
>
>myid=31206-1653228-5
>
>I want to break myid into 15 parts then show every part in separte report field.
>
>It will be right if result will be as
>
>var1=3
>var2=1
>var3=2
>var4=0
>var5=-
>var6=1
>var7=6
>var8=5
>var9=3
>
>Please help again
for i=1 to len(myid)
  cVar="Var"+transform(i)
  local (cVar)
  store substr(myid,i,1) to (cVar)
endfor
Not tested. You may want to change "local" into "private" or even "public".

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
Répondre
Fil
Voir

Click here to load this message in the networking platform