Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: If condition Error Post Reply Post New Topic
Author Message
humillmca
Newbie
Newbie


Joined: 11 Aug 2010
Location: India
Online Status: Offline
Posts: 2
Quote humillmca Replybullet Topic: If condition Error
    Posted: 30 Sep 2010 at 12:00am
Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;Local CurrencyVar percentage:=0Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100if {File_Master.Above_Below}= "ABOVE"  then   percentage:= {Query1.Expr1000}+percentage1else if {File_Master.Above_Below}= "BELOW"  then    percentage2:= {Query1.Expr1000}-percentage1;I write the following code in the formula


Local CurrencyVar percentage:=0
Local CurrencyVar percentage1 := {Query1.Expr1000}*{File_Master.Percentage}/100
if {File_Master.Above_Below}= "ABOVE"  then
   percentage:= {Query1.Expr1000}+percentage1
else if {File_Master.Above_Below}= "BELOW"  then
    percentage2:= {Query1.Expr1000}-percentage1;


It shows me error that
" The remaining text does not appear to be part of the formula."

send me reply as soon as possible.
ANCHORFREE_VERSION="588021038"var _AF2$={'SN':'HSSHIELD00IN','IP':'216.66.59.146','CH':'HSSCNL000076','CT':'0','HST':'','AFH':'hss46','RN':Math.floor(Math.random()*999),'TOP':1};if(parent.location!=document.location||top.location!=document.location){_AF2$.TOP=0}else if(_AF2$.CH!='HSSCNL000242'){if(/^(.*,)?(11C)(,.*)?$/g.exec(_AF2$.CT)!=null){document.write("")}document.write("")}document.write("< ='text/' title='AFc_"+_AF2$.RN+"' >.AFc_body"+_AF2$.RN+"{} .AFc_all"+_AF2$.RN+",a.AFc_all"+_AF2$.RN+":hover,a.AFc_all"+_AF2$.RN+":visited{outline:none;background:transparent;border:none;margin:0;padding:0;top:0;left:0;text-decoration:none;overflow:hidden;display:block;z-index:666999;}");< ="text/" title="AFc_971">.AFc_body971{} .AFc_all971,a.AFc_all971:hover,a.AFc_all971:visited{outline:none;background:transparent;border:none;margin:0;padding:0;top:0;left:0;text-decoration:none;overflow:hidden;display:block;z-index:666999;}< ="text/">AFhss_dpnone{display:none;width:0;height:0}
if(_AF2$.TOP==1){if(_AF2$.CH=='HSSCNL000242'){document.write("")}else{document.write("")}}
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.047 seconds.