Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limit on Custom Class
Message
De
07/09/2005 16:08:51
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
07/09/2005 09:48:23
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01047325
Message ID:
01047486
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform