?
Solved

layout of code

Posted on 2011-02-14
3
Medium Priority
?
394 Views
Last Modified: 2012-05-11
Hi,

can someone set this code out for me below so it works.

  if UpperCase(form1.adotable2.Fields[N].AsString) = UpperCase('12 Month)
+ UpperCase(form1.adotable2.Fields[j].AsString) = UpperCase('Sale ok') then
      inc(twelve1);
0
Comment
Question by:iplay
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 2000 total points
ID: 34891794
are you doing this in a procedure of form1 ?
then do not use form1 !

and otherwise pass the adotable as a parameter to the procedure

if SameText(AdoTable2.Fields[N].AsString, '12 Month') and
  SameText(AdoTable2.Fields[j].AsString, 'Sale ok') then
  inc(twelve1);
0
 

Author Comment

by:iplay
ID: 34891812
No im doing this on form 13

0
 

Author Closing Comment

by:iplay
ID: 34891868
Thanks, works fine, cheers
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question