Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread EWB 2.02 - still problem with class methods
Wed, Oct 21 2015 4:30 PMPermanent Link

Christian Kaufmann

This code:

class procedure TFBSUserCreateAccountDlg.Execute(ATermsUrl: String);
var
 f : TFBSUserCreateAccountDlg;
begin
 f := TFBSUserCreateAccountDlg.Create(Application);
 f.LTerms.Url := ATermsUrl;
 f.ShowModal;
end;

compiled looks like this:

bsusercreateaccountdlg_tfbsusercreateaccountdlg.$p.execute = function(atermsurl)
{
  var $t = this, f;
  $ct.f = bsusercreateaccountdlg_tfbsusercreateaccountdlg.$p.create1.call(new
bsusercreateaccountdlg_tfbsusercreateaccountdlg(), webforms_application);
  $ct.f.tfbsusercreateaccountdlg_lterms.tlink_seturl(atermsurl);
  $ct.f.showmodal();
};


And I get a runtime error ($ct not defined).

Is this a compiler error or is something wrong with my code?

cu Christian
Thu, Oct 22 2015 12:50 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Christian,

<< And I get a runtime error ($ct not defined).  Is this a compiler error or is something wrong with my code? >>

It's a compiler error, and it's fixed.  The issue was the compiler was allowing the "static routine" status to filter down into the variables also.

Tim Young
Elevate Software
www.elevatesoft.com
Image