Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection to Backend
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01343807
Message ID:
01344551
Vues:
17
>>>>I have a question regarding CA.
>>>>
>>>>Right now, since I am a newbie, I am creating the CA as I need on the DE of the form, but... What if I need exactly the same CA in other form?
>>>>
>>>>do I have to creat it everytime I need it? is there any way to store it on the DATABASE DBC and then Add it to the DE?
>>>
>>>No,
>>>You can store them as an usual class in VCX, or (as William suggested, as PRG based classes).
>>>Then you could use them where you need.
>>>You could create also DataEnvironment class and use them there.
>>
>>Ok. I just created my first CA class now I wonder: is there any way to display the dataon the CA like a browse?
>>I now i can create a form and add code to a command button to browse the cursor, but i was thinking on something more simple like in the command window? can we?
>
>Sure,
>
>oCA = NEWOBJECT([YourCAClass],[ClassLib])
>oCa.CursorFill()
>BROWSE NORMAL
>
Question, How do i change the CA Database on runtime?

I mean, when I am at Design Environment I point to a sample database, but when real data comes in, I have like 5 DB for 5 diferent companies on the same sql server so, I was wondering, how do the CA nows what DB to chose, it knows the table, but the DB???
TIA
.......
DO WHILE .T.
      ME.Work()
ENDDO
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform