Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Manish Swami
  Where is Manish Swami?
 SRI GANGANAGAR
 India
 Manish Swami
 To: kacida piraku
  
 
 
 kacida piraku
 Tags
Subject: RE: running Number
Thread ID: 365497 Message ID: 365498 # Views: 73 # Ratings: 0
Version: Visual FoxPro 9 Category: Other
Date: Thursday, December 27, 2012 9:29:50 AM         
   


> Dear expeert
> I have running number 001 until 999, that over limit I want to continue with A01..A99 and continue with B001..B99.. end next , how can I do that???
>
> example
> No
> 001
> .
> .
> 999
> A01
> A02
> .
> .
> A99
> .
> .
> B01
> .
> .
> B99
>
> Thank

MEM=' ABCDEFGHIJKLMNOPQRSTUVWXYZ'
I=1
I1=1
I2=1
DO WHILE I1<=27
FOR I=1 TO 999
I3=SUBSTR(MEM,I2,1)+ALLTRIM(PADL(ALLTRIM(STR(I)),3,'0'))
?I3
ENDFOR
I=1
I1=I1+1
I2=I2+1
ENDDO


Regards

MANISH SWAMI
www.gaurisoftwares.com
My Blog : - www.gaurisoftwares.blogspot.com

ENTIRE THREAD

running Number Posted by kacida piraku @ 12/27/2012 8:45:19 AM
RE: running Number Posted by Manish Swami @ 12/27/2012 9:29:50 AM
RE: running Number Posted by Samir H. @ 12/27/2012 9:32:47 AM
RE: running Number Posted by Anders Altberg @ 12/27/2012 1:19:39 PM
RE: running Number Posted by kacida piraku @ 12/28/2012 1:21:05 AM
RE: running Number Posted by Rahul Moudgill @ 12/27/2012 2:40:25 PM
RE: running Number Posted by Koen Piller @ 12/27/2012 5:48:42 PM
RE: running Number Posted by kacida piraku @ 12/28/2012 1:22:04 AM