Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEPUBLIC and _COMATTRIB array
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01241552
Message ID:
01241708
Vues:
27
>Methods have a HELPSTRING attribute, ex.
>
>
>FUNCTION SomeMethod(Param AS String) AS Void ;
>   HELPSTRING "Description of method"
>
>   * Code here
>ENDFUNC
>


Yeah, that works, Thx.


>>Bonus question. Considering they will be using these functions (in the DLL) as Excel functions, therefore sometimes recalculated in hundreds of rows, sometimes not at all for periods of time, would it better to maintain an open connection once in the DLL (in INIT) or to connect/disconnect in each Function/Procedure? Not sure about this one. Timing woul dbe faster with an open connection to SQL Server (through our LAN), but I'm not happy with 10 or so users haviong open connections for long periods of time dutring the workday.
>>
>
>I depends on the scenario, but from what you've described, I would probably open/close in each method. It will be safer (since you'd need to ensure a connection was still valid anyway).


I had already come to that conclusion in the interim. Thx.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform