Thread: Problem?
View Single Post
  #1  
Old 02-23-2007, 10:19 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Problem?

I have a problem when it comes to calling classes, I want to use a variable to hold the class name and use the :: operator to call it.

Here is a snippet from my code:

PHP Code:
     for ( temp.0temp.temp.getClasses.size(); temp.a++ )
     {
          
temp.res;
          
          
this.join(temp.getClasses[temp.a]);

          
temp.res battledata::start();
          
          if (!
temp.res)
          {
               return 
false;
          }
     }
     
     return 
true
^ That works, but this doesn't:
PHP Code:
     for ( temp.0temp.temp.getClasses.size(); temp.a++ )
     {
          
temp.res;
          
          
this.join(temp.getClasses[temp.a]);
          
          
temp.res = (@ temp.getClasses[temp.a])::start();
          
          if (!
temp.res)
          {
               return 
false;
          }
     }
     
     return 
true
Any ideas?
__________________
What signature? I see no signature?
Reply With Quote