Link to home
Start Free TrialLog in
Avatar of boycoder
boycoder

asked on

read from the txt file

carry on from my last Q sorry...

If when the form13 loads in the onshow event, how would i have it so that if the email inside DBemail.text is already inside the text file, dont add it... this is what i am working with


if
DBemail.text=(f:\special.txt')
then begin
showmessage('already added')
  MakeSpecialMember1.enabled := false
  end
  else begin
    MakeSpecialMember1.enabled := true ;


( i know its wrong, just so it gives the idea )
ASKER CERTIFIED SOLUTION
Avatar of Ephraim Wangoya
Ephraim Wangoya
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of boycoder
boycoder

ASKER

great!

notes incase i read this again..  i used it inside the actual sepcial select button rather than form show/createect..

Thanks friend.