Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I add method code at design-time programatically?
Message
From
15/08/2000 18:19:40
 
 
To
15/08/2000 18:02:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00405230
Message ID:
00405267
Views:
18
Sorry...Big miss on my part...
Make sure to include the OVERWRITE argument in the APPEND MEMO
This means that the "demeth.prg" (or whatever) file will need all code for the DE.
>** either way
>FOR ji = 1 TO lnFCnt
>  lcForm = ALLTRIM(laForms[ji,1])
>  WAIT WINDOW lcForm + CHR(13) + STR(ji) + " of" + STR(lnFCnt) NOWAIT
>  USE (lcForm)
>  LOCATE FOR baseclass= "dataenvironment"
>  IF FOUND()
>    ** this form has a DE
>    APPEND MEMO methods FROM demeth.prg <b>OVERWRITE</b>
>  ENDIF
>  USE
>  COMPILE FORM (lcForm)
>ENDFOR
>HTH
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform