Adding *.pss to project.

Posted on 2011-04-20
Last Modified: 2012-05-11

I can not use:;
because of:
Error] registertestU.pas(111): Undeclared identifier: 'ProtectorDlg'

What is wrong?

Question by:pr2501
    LVL 36

    Accepted Solution

    either you changed the name/type of the form ProtectorDlg
    or the unit is missing
    LVL 14

    Assisted Solution

    Find registertestU.pas in your drive,  when you got it,  put it inside and beside to the other .pas folders.
    LVL 24

    Expert Comment

    You might be using different spelling than the Form name.
    The Form name is "ProtectorDlg" but when you call it in registertestU.pas perhaps you use another character(s) that is similar to one of that name but not matching it. For example "L" when is capitalized is clear but when used as small char it looks exactly as "1" (one) or "I" (capital i). So in your case it could be "ProtectorDIg" or "ProtectorD1g", but similarity is only in human eyes.

    If that's not the case, can you attach the code after removing the unnecessary or sensitive data?
    LVL 32

    Expert Comment


    add CheckTrial to your uses clause of registertestU unit


    Author Comment

    Geert_Gruwez where do i check it?


    next is from *.dfm  for checktrial:

    object ProtectorDlg: TProtectorDlg
      Left = 375
      Top = 361
      BorderIcons = []

    Author Comment

    I get second if situation in the code in the attached picture.
    But even if "registerttestf.close;" is not commented the form still appears.
    Why? (or what to do to prevent this?)

    LVL 24

    Expert Comment

    Please attach your code after removing any sensitive data (if possible).
    Or at least explain what you are doing.
    For instance what is "match" and what is "HWRec3" and what is the output as per the "ShowMesasge" used there.

    The more information you provide, the clearer the picture becomes.

    We are building an idea of the issue based on the information you give.

    Author Comment

    My starting problems was connected to problem of adding *.pss  I have made some confusion because of the *.pss with same name. So because i could not find the error i had to redo it. And with second case i was successful.

    So i presume that i should give points to first two answers.

    After resolving the error, question how to close form which is checked as main in project option in form window come out.

    does not work. Whay?
    LVL 24

    Assisted Solution

    Most likely you have some code, such as, CloseQuery which sets the Form CanClose to False and hence your Form does not close.
    procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean) ;
      CanClose := False;

    Open in new window

    Can you show code please.

    Author Comment

    thank you

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now