SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Undeclared Identifier siLang1???

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
bpwagner



Joined: 08 Dec 2003
Posts: 3

PostPosted: Mon Dec 08, 2003 12:16 am    Post subject: Undeclared Identifier siLang1??? Reply with quote

I am convinced that I am just being stupid and the answer is obvious, but I just cannot see it Rolling Eyes .

Anyway, I was working with tsiLang in unregistered mode and just recently purchased it. Upon installation of the full version, I am no longer able to compile. I am getting an Undeclared identifier: siLang1 error. I looked for it in the type statement for the class and all looks OK. Furthermore the siLang component is on the form and the dfm looks OK. I have done all the normal stuff such as deleting the component and re-creating it.

I am at a loss...Any ideas? I am running Delphi 5 and the latest version 5.2.5 fix1

Thanks,
Brian
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Mon Dec 08, 2003 7:05 am    Post subject: Reply with quote

I can suppose the following:
This piece of code (where you have compilation error) is either included into some
Code:
with someobject do ...
statement or is not under scope of form code which conatins TsiLang component.
So either check this things or you may publish part of your code and we will see what could be wrong.
Back to top
View user's profile Send private message
bpwagner



Joined: 08 Dec 2003
Posts: 3

PostPosted: Tue Dec 09, 2003 7:01 pm    Post subject: Reply with quote

Attached is a code snippit. I am still having troubles getting it to compile. I have uninstalled and reinstalled to see if that helps.

Code:
unit Emerg;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, Buttons, ComCtrls, jpeg, ExtCtrls, Main, Mask, Gauges, helpdefs, printers,
  siComp;

type
  TfrmEmerg = class(TForm)
    StaticText1: TStaticText;

...snip...

    Image1: TImage;
    txtPOState: TComboBox;     
    txtParentState1: TComboBox;
    siLang1: TsiLang;

    procedure btnDoubleCheckClick(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);

...snip...


    procedure BitBtn1Click(Sender: TObject);
  private
  public
  end;

Procedure CmbAutoComplete(cmbTemp : tComboBox);
Procedure AutoCap(Sender: TObject);

var
  frmEmerg: TfrmEmerg;
  lastkey:word;

implementation

uses EditForm, EMAIL, Report;

{$R *.DFM}

procedure SaveEmergFields();
begin

if IsDirty(frmEmerg.tabStep1) or
   IsDirty(frmEmerg.tabStep2) or
   IsDirty(frmEmerg.tabStep3) or
   IsDirty(frmEmerg.tabStep4) or
   IsDirty(frmEmerg.tabStep5) or
   IsDirty(frmEmerg.tabStep6) or
   IsDirty(frmEmerg.panelAbductor) then
   if MessageDlg(siLang1.GetTextOrDefault('IDS_0' (* 'Do you want to save your information?' *) ),

*** The error happens at the above siLang ***


The problem happens at the siLang1.GetTextOrDefault place. Any ideas?

Thanks, Brian
Back to top
View user's profile Send private message
bpwagner



Joined: 08 Dec 2003
Posts: 3

PostPosted: Tue Dec 09, 2003 9:18 pm    Post subject: Reply with quote

Embarassed
I figured it out...I did not reference the form frmEmerg.siLang1.GetTextOrDefault... duh

Thanks Brian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group