School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,100 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,028 people online right now. Registration is fast and FREE... Join Now!




checking line 26 or 27

 

checking line 26 or 27

ddrumm

21 Oct, 2009 - 06:01 AM
Post #1

New D.I.C Head
*

Joined: 24 Feb, 2009
Posts: 23


My Contributions
The below piece of code works, the only thing is, if the invoice number is on line 26 it is still checking line 27 and its pulling info from it also, which is usually the date as its in the same place only on line 27,

Is there something I can put into the code which will not check line 27 if there is text in line 26?
Heres the code that im using

CODE
<cfif previouslinenumber eq 26>
<cfset linenumber = 27>
</cfif>
<cfif (linenumber eq 26) OR (linenumber eq 27)>
<cfset invoicenumber = trim(right(left(i,74),20))>
<cfif (invoicenumber neq previousnumber) AND (invoicenumber neq "")>
</cfif>


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 12:17PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month