Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 2 of 2 total |
EWB 2.02 - still problem with class methods |
Wed, Oct 21 2015 4:30 PM | Permanent 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 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. 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 |
This web page was last updated on Tuesday, April 23, 2024 at 08:10 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |