Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Start with COM+ and VFP
Message
De
19/11/2004 17:50:46
 
 
À
19/11/2004 17:04:49
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00958650
Message ID:
00963102
Vues:
8
I guess I understand it, Does that mean that every time I need to use one or more tables in a method call I have to open the tables at the beginning and close them at the end of the method?

Luis


>Nope, you can't do that. The COM+ component (even a standard COM component) does not have access to the memory space of the EXE.
>
>>Hello again Esparta. I printed and read the articles you pointed me to, they are very, very interesting and show how to setup a component along with security and all the necessary stuff. Well, now my question is...should I take additional considerations regarding VFP programming like open tables, indexes, variables, objects and so on? Should I treat my COM+ component like any other object in VFP? For example, can I reference an already-open table frmo within my component's method code, like this?
>>
>>
>>USE myTable
>>o1=CREATEOBJECT('myCOMComponent')
>>
>>** This method sums a given field column and returns the result.
>>myVar= o1.SumCursorColumn(;
>>   'myFieldColumn') && Name of a field of the 'myTable' table already open.
>>? myVar
>>USE in myTable
>>
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform