Solved

layout of code

Posted on 2011-02-14
3
389 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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