Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limit on Custom Class
Message
From
07/09/2005 16:08:51
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
07/09/2005 09:48:23
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01047325
Message ID:
01047486
Views:
11
Hi Steven,
There is a limit on methods, and in my testing, it's 6499.
ProcText = ''
Number2Do = 6500   && 6499 works for both loops below.
FOR x = 1 TO m.Number2Do
   ProcText = m.ProcText + MakeProc(SYS(2015))
ENDFOR
STRTOFILE(m.ProcText, "ProcsFile.PRG",0)
COMPILE ProcsFile.PRG   && Works.


ProcText = 'DEFINE CLASS xx AS Custom' + CHR(13) + CHR(10)
FOR x = 1 TO m.Number2Do
   ProcText = m.ProcText + MakeProc(SYS(2015))
ENDFOR
STRTOFILE(m.ProcText ;
   + CHR(13)+CHR(10) + "ENDDEFINE", "ProcsFile.PRG",0)
   
COMPILE ProcsFile.PRG   && Fails.

RETURN

PROCEDURE MakeProc(ProcName)
   LOCAL ProcText
   TEXT TO ProcText NOSHOW TEXTMERGE

PROCEDURE <<m.ProcName>>
   RETURN
ENDPROC

   ENDTEXT
   RETURN m.ProcText
ENDPROC
>Is there a limit on how many methods and or properties a custom class can have?
Charlie
Previous
Reply
Map
View

Click here to load this message in the networking platform