× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Simplicity, simplicity, simplicity. That's why I love you guys. Thanks for
the obvious, Rob.

Buzz

------------------------------

message: 6
date: Thu, 6 May 2010 12:40:29 -0400
from: rob@xxxxxxxxx
subject: Re: Declare single cursor (or an equivalent)

You could do this with prepare and execute. Sometime in your life you
may
have to. However there is some advantage to avoiding this. One is
that
some information is actually stored in the program about SQL accesses.
And
prepare and execute aren't as helpful. A workaround is this
declare cursor c1 as
select ...
from ...
where col1 is between :x and :y
and col2 is between :a and :b
order by ...

Now, let say your screen has the option where x is item class. Now
they
can put in one item class or they can put in *ALL. If they put in one,
then set x and y both to that value. If they put in *ALL then set x to
loval and y to hival.

Understand?

Check the changed date on your program after the compile but before any
executions. Check it again after the execution.


Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com






--
PRIVACY WARNING: For auditing purposes, a copy of this message has been
saved in a permanent database.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.