Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: While and For loops not compiling ??? Post Reply Post New Topic
Author Message
jamesklett
Newbie
Newbie


Joined: 18 Feb 2011
Online Status: Offline
Posts: 2
Quote jamesklett Replybullet Topic: While and For loops not compiling ???
    Posted: 29 Aug 2011 at 9:25am
Crystal Reports is giving me errors on any type of For, While loop I try to write. I have tried all the variations and I always get the same error, which says Statement is missing a Wend, or a Next depending on the type of loop I write.

Example: (This gives the error the keyword Next is missing)
               *** Same error if I use Do/While Loop

dim i as number
dim s as string
i = 0

For i = 1 To 10
    s = 'some string'   -- error is display here
    i = i + 1
Next

formula = s


The syntax looks correct to me so any ideas?

USING CR2008 R2 on Windows 7 - x64

thanks

JIM
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.