Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Large Application Doform() vs AbstractFactory
Message
 
To
25/06/2002 09:38:48
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00623680
Message ID:
00672040
Views:
17
Gary,

I've modified your code slightly, although it's functionally equivalent:
PROCEDURE AddLib

LPARAMETERS tcLib, tcFile

LOCAL ARRAY laLibArray[1]

IF NOT UPPER(tclib) + '.VCX' $ SET('CLASSLIB')
   IF PCOUNT() = 1
      SET CLASSLIB TO (tcLib) ADDITIVE
   ELSE
      ALINES(laLibArray, tcLib, .T., ',')
      FOR EACH tcLib IN laLibArray
         SET CLASSLIB TO (tcLib) IN (tcFile) ADDITIVE
      ENDFOR
   ENDIF
ENDIF

ENDPROC
If this works for you, I'll make it official!

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform