Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Divide variable into parts
Message
From
09/02/2008 00:47:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/02/2008 00:38:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01266627
Message ID:
01291018
Views:
8
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform