Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child.pcount() ?
Message
From
10/07/2003 16:16:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Child.pcount() ?
Miscellaneous
Thread ID:
00809000
Message ID:
00809000
Views:
56
I'm using VFP 7.0

Is there any way that a class can determine pcount() from one of it's sub-classes?
Currently I have to do this:
class.method()
  lparameters t1, t2
  if pcount() = 2
    .......
  endif

subclass.method()
  lparameters t1, t2
  ......
  * dodefault( t1, t2 )         && would like to still do this
  do case
    case pcount() = 0
      dodefault()
    case pcount() = 1
      dodefault( t1 )
    otherwise
      dodefault( t1, t2 )
  endcase
Would rather do this:
class.method()
  lparameters t1, t2
  if Sub_pCount() = 2
    .......
  endif

subclass.method()
  lparameters t1, t2
  ......
  dodefault( t1, t2 )
Bill Morris
Next
Reply
Map
View

Click here to load this message in the networking platform