Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to California  
Web Server Talk Web Server Talk > Free Databases support forum > dBASE > dBASE Programming > Comparing




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

daisy_polly is offline     Comparing  
daisy_polly


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for daisy_polly Click here to Send daisy_polly a Private Message Find more posts by daisy_polly Add daisy_polly to your buddy list
 
05-04-05 02:27 AM

Hi,

I have a little database I have attatched a little picture of the database. 
What I am trying to do is First The "Appln" number and look in the field act
_type to see if it is "RSA" If it is then look for the same "Appln" number a
nd see if it has "REP" or "AFA" with a date sooner than "RSA" date. Could so
me one please help me I am new to dBase and I have to make this program inor
der to to get the data and then write a report for me boss.

Thanks to anyone who helps.

Daisy




[ Post a follow-up to this message ]



    Re: Comparing  
Jean-Pierre Martel


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-04-05 12:48 PM

In article <daisy_polly.1ohykz@mail.webservertalk.com>,
daisy_polly.1ohykz@mail.webservertalk.com says...
>
> What I am trying to do is First The "Appln" number
> and look in the field act_type to see if it is "RSA"
> If it is then look for the same "Appln" number and
> see if it has "REP" or "AFA" with a date sooner
> than "RSA" date.
> http://www.webservertalk.com/attach...?postid=2707031

If you request is not just a trick to harbour email addresses, why should
we give you our e-mail address in order to see the image you have posted
on your site? In other words, why is registration _necessary_ in order to
help you?

About your problem, you could the beforeGetValue() method of the field
object to check anything you want about the value of other fields of that
rowset or the value of the fields of any rowset in the datamodule.

Jean-Pierre Martel, editor
The dBASE Developers Bulletin
Blue Star dBASE Plus Core Concepts Graduate





[ Post a follow-up to this message ]



    Re: Comparing  
David Kerber


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-04-05 12:48 PM

In article <MPG.1ce287137f1136c298973f@news.dbase.com>,
nospam@nospam.com says...
> In article <daisy_polly.1ohykz@mail.webservertalk.com>,
> daisy_polly.1ohykz@mail.webservertalk.com says... 
>
> If you request is not just a trick to harbour email addresses, why should
> we give you our e-mail address in order to see the image you have posted
> on your site? In other words, why is registration _necessary_ in order to
> help you?

It looks to me like she posted this on another message board of which
she is a member, and *it* requires the registration.  I certainly agree
with your concern, though.

...

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).





[ Post a follow-up to this message ]



daisy_polly is offline     Re: Re: Comparing  
daisy_polly


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for daisy_polly Click here to Send daisy_polly a Private Message Find more posts by daisy_polly Add daisy_polly to your buddy list
 
05-04-05 10:40 PM

quote:
Originally posted by David Kerber In article <MPG.1ce287137f1136c298973f@news.dbase.com>, nospam@nospam.com says... > In article <daisy_polly.1ohykz@mail.webservertalk.com>, > daisy_polly.1ohykz@mail.webservertalk.com says... > > If you request is not just a trick to harbour email addresses, why should > we give you our e-mail address in order to see the image you have posted > on your site? In other words, why is registration _necessary_ in order to > help you? It looks to me like she posted this on another message board of which she is a member, and *it* requires the registration. I certainly agree with your concern, though. .... -- Remove the ns_ from if replying by e-mail (but keep posts in the newsgroups if possible).
Hi, Thanks alot for your replies I am not trying to take anyones email I posted this image as an attatchment and don't know why it requires you to log in co uld someone please give a little sample code so I know where should i start with. Thanks a bunch again I will post the image on my host and the link to that is http ://irum897.freeownhost.com/picture.GIF




[ Post a follow-up to this message ]



daisy_polly is offline     Re: Re: Re: Comparing  
daisy_polly


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for daisy_polly Click here to Send daisy_polly a Private Message Find more posts by daisy_polly Add daisy_polly to your buddy list
 
05-04-05 10:45 PM

quote:
Originally posted by daisy_polly Hi, Thanks alot for your replies I am not trying to take anyones email I posted this image as an attatchment and don't know why it requires you to log in co uld someone please give a little sample code so I know where should i start with. Thanks a bunch again I will post the image on my host and the link to that i s http://irum897.freeownhost.com/picture.GIF




[ Post a follow-up to this message ]



    Re: Comparing  
David Kerber


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-05-05 12:48 PM

In article <daisy_polly.1ohykz@mail.webservertalk.com>,
daisy_polly.1ohykz@mail.webservertalk.com says...
>
> Hi,
>
> I have a little database I have attatched a little picture of the
> database. What I am trying to do is First The "Appln" number and look
> in the field act_type to see if it is "RSA" If it is then look for the
> same "Appln" number and see if it has "REP" or "AFA" with a date sooner
> than "RSA" date. Could some one please help me I am new to dBase and I
> have to make this program inorder to to get the data and then write a
> report for me boss.

And then what do you want to do with it?  A code-snippet for this might
be (this is XDML, not OODML):

if act_type = "RSA"
nAppLn = AppLn
dRSADate = Act_Date
locate for Appln = nAppln and (act_type = "REP" or act_type = "AFA"
and Act_date < dRSADate )
if found()
** do whatever
endif
endif


If you just want to display these records, then put this code (modified
as needed for your needs) in a canGetRow() as Jean-Pierre suggested, and
return TRUE if it was found().


--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).





[ Post a follow-up to this message ]



daisy_polly is offline     Re: Re: Comparing  
daisy_polly


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for daisy_polly Click here to Send daisy_polly a Private Message Find more posts by daisy_polly Add daisy_polly to your buddy list
 
05-07-05 01:20 AM

quote:
Originally posted by David Kerber In article <daisy_polly.1ohykz@mail.webservertalk.com>, daisy_polly.1ohykz@mail.webservertalk.com says... > > Hi, > > I have a little database I have attatched a little picture of the > database. What I am trying to do is First The "Appln" number and look > in the field act_type to see if it is "RSA" If it is then look for the > same "Appln" number and see if it has "REP" or "AFA" with a date sooner > than "RSA" date. Could some one please help me I am new to dBase and I > have to make this program inorder to to get the data and then write a > report for me boss. And then what do you want to do with it? A code-snippet for this might be (this is XDML, not OODML): if act_type = "RSA" nAppLn = AppLn dRSADate = Act_Date locate for Appln = nAppln and (act_type = "REP" or act_type = "AFA" and Act_date < dRSADate ) if found() ** do whatever endif endif If you just want to display these records, then put this code (modified as needed for your needs) in a canGetRow() as Jean-Pierre suggested, and return TRUE if it was found(). -- Remove the ns_ from if replying by e-mail (but keep posts in the newsgroups if possible).
Thanks so much for your help. DAisy




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:16 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register