[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • Last Modified:

Adding *.pss to project.


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

What is wrong?

protrctorDlg.JPG
0
pr2501
Asked:
pr2501
3 Solutions
 
Geert GruwezOracle dbaCommented:
either you changed the name/type of the form ProtectorDlg
or the unit is missing
0
 
systanCommented:
Find registertestU.pas in your drive,  when you got it,  put it inside and beside to the other .pas folders.
0
 
jimyXCommented:
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?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Ephraim WangoyaCommented:

add CheckTrial to your uses clause of registertestU unit


uses
  CheckTrial;
0
 
pr2501Author Commented:
Geert_Gruwez where do i check it?

name/type?

next is from *.dfm  for checktrial:

object ProtectorDlg: TProtectorDlg
  Left = 375
  Top = 361
  BorderIcons = []
 .......................
...................
0
 
pr2501Author Commented:
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?)


formecreate.JPG
0
 
jimyXCommented:
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.
0
 
pr2501Author Commented:
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.

mainform.close;
does not work. Whay?
0
 
jimyXCommented:
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) ;
begin
  CanClose := False;
end;

Open in new window


Can you show code please.
0
 
pr2501Author Commented:
thank you
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now