New topic: 

Web Apps and Classes

<http://forums.realsoftware.com/viewtopic.php?t=43933>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        capaho          Post subject: Web Apps and ClassesPosted: Tue 
May 08, 2012 11:17 pm                         
Joined: Fri Jul 21, 2006 12:28 am
Posts: 383                I created a web app to take form input and send it by 
email with an SMTPSecureSocket as a class for sending the messages.  Whenever 
the instance of the class attempts to access a web control on the app's web 
page it gives a NilObjectException error.  Is it not possible for a web app 
class instance to access a web page control, for example, to print a status 
message in a TextArea?      
_________________
Regards,
Carl
Capaho Web
http://www.capaho.com  
                             Top                simulanics          Post 
subject: Re: Web Apps and ClassesPosted: Wed May 09, 2012 12:33 am              
           
Joined: Sun Aug 12, 2007 10:10 am
Posts: 514
Location: Boiling Springs, SC                capaho wrote:I created a web app 
to take form input and send it by email with an SMTPSecureSocket as a class for 
sending the messages.  Whenever the instance of the class attempts to access a 
web control on the app's web page it gives a NilObjectException error.  Is it 
not possible for a web app class instance to access a web page control, for 
example, to print a status message in a TextArea?

In the class..since it's not part of the actual page.. You will have to specify 
hierarchically where the specific control you wish to use is located...

Webpagename.textfieldname.text = "status message"      
_________________
Matthew A. Combatti
Real Studio 2011 r4.3
Visit Real Studio Developer's Spot!
Systems:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to