Recent

Author Topic: [SOLVED] Why do I get an error here?  (Read 775 times)

What I can do

  • Full Member
  • ***
  • Posts: 193
[SOLVED] Why do I get an error here?
« on: September 24, 2024, 03:02:33 pm »
Where and when does  TPaperize;
Get defined and activaed
I always get "Identifier not found "TPaperSize;"
Where and how do I active?

Code: Pascal  [Select][+][-]
  1. unit uPrint;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. interface
  6.  
  7. uses
  8.   Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
  9.   Printers, MaskEdit, Buttons, PrintersDlgs,uToolKit, Types;
  10.  
  11. type
  12.   PO = (AlignL,AlignR,AlignC,AlignD);
  13.   FPrintJob=Record
  14.              Idx:Integer;
  15.              Media:String;
  16.              Group:String;
  17.              Size:`TPaperize;
  18.              COPIES:Integer;
  19.              orta:TPrinterOrientation;
  20.             end;
  21.  
  22.   { TForm1 }
  23.  
  24.   TForm1 = class(TForm)  
« Last Edit: September 24, 2024, 05:28:29 pm by What I can do »

rvk

  • Hero Member
  • *****
  • Posts: 7064
Re: Why do I get an error here?
« Reply #1 on: September 24, 2024, 03:19:17 pm »
Where and when does  TPaperize;
Get defined and activaed
I always get "Identifier not found "TPaperSize;"
Where and how do I active?
Check your SPELLING. It doesn't say it can't find TPaperSize.

It says can't find "TPaperize".

You have a typo in your code !  ;)


What I can do

  • Full Member
  • ***
  • Posts: 193
Re: Why do I get an error here?
« Reply #2 on: September 24, 2024, 05:28:06 pm »
Thank You rvk
I am an Old man working on a laptop, with an external monitor that the RED tube is out, so every thing looks greyed and even blurry at times compounded by very bad vision.
NOTE: check spelling when "Identifier not found " is produced which is about 99.99% of all my errors.
Thank you again rvk, I was concerned that maybe I would get one of those "Look at this dummy" response but not at all you were very helpful, patient, and very professional  to which I am most grateful.

coding is my obsession like others use crossword puzzle, or very complex jig saw
code is the same with me, it is my past time and I just really enjoy it. So your help hits deep, thank you.

VisualLab

  • Hero Member
  • *****
  • Posts: 742
Re: [SOLVED] Why do I get an error here?
« Reply #3 on: September 25, 2024, 06:58:29 pm »
In addition to the typo, there is also a "tangled" apostrophe. It will also interfere during compilation.

Code: Pascal  [Select][+][-]
  1.   FPrintJob=Record
  2.              Idx:Integer;
  3.              Media:String;
  4.              Group:String;
  5.              Size:`TPaperize; // <- apostrophe between field name and type name
  6.              COPIES:Integer;
  7.              orta:TPrinterOrientation;
  8.             end;

 

TinyPortal © 2005-2018