Normal Topic Help understanding example (Read 676 times)
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Help understanding example
Jan 23rd, 2004 at 11:04pm
Print Post Print Post  
Can you please explain what this represents in the example on page 193 of the programming guide


For i = @LEN(CCNUM) DOWNTO 2 STEP 2

The DOWNTO 2 STEP 2 has me miffed  ???
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Help understanding example
Reply #1 - Jan 23rd, 2004 at 11:31pm
Print Post Print Post  
Bob: This is a reverse loop. Normally when you loop, say 10 records, you go from 1 to 10 (this is up).  Reverse is from 10 to 1 (this is called down)

downto  2 step 2 -  it will count two backwards until 2 that is   10, 8, 6, 4, 2.   

I think, I am right but if not Lantican will clarify.
  
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Help understanding example
Reply #2 - Jan 23rd, 2004 at 11:50pm
Print Post Print Post  
Thanks Bharat,

The example worked fine.  I just wanted to understand the logic better. I hate just copying something without completely understanding it.

I am now convinced that between all us users and the help of the Lanticans we will together figure all this stuff out eventually.  Cheesy
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged