Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prepare C/S app for VFP8.
Message
De
07/10/2002 15:51:56
 
 
À
06/10/2002 05:54:11
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00707676
Message ID:
00708505
Vues:
13
I don't know of any special resources for migrating from VFP 7 to VFP 8.

A feature new to VFP 8 that may help is the DataEnvironment can now be classed. So I'm thinking that you can architect your current system ensuring that all cursors and data logic is in the DE and then, in 8, engineer a new DE with CursorAdpators using the same cursor names and swap it in at dev-time.

Here's some info from the VFP 8 help file on CAs:
-----------------------------
Provides a class of extended cursors that offers support for handling a wide range of local or remote data sources as native Visual FoxPro Cursors. These data source types include the following:

Native
Open Database Connectivity (ODBC)
ActiveX Data Object (ADO)
Extensible Markup Language (XML)
-----------------------------

Here are the PEMs:
-----------------------------
The following properties, methods, and events support extended cursor functionality and the use of data sources at the data environment and CursorAdapter level.

Properties
Alias AllowDelete AllowInsert
AllowUpdate Application BaseClass
BatchUpdateCount BufferModeOverride Class
ClassLibrary Comment CompareMemo
ConversionFunc CursorSchema CursorStatus
DataSource DataSourceType DeleteCmd
DeleteCmdDataSource DeleteCmdDataSourceType UpdateGram
FetchAsNeeded FetchMemo FetchSize
Flags InsertCmd InsertCmdDataSource
InsertCmdDataSourceType KeyFieldList MaxRecords
Name Parent ParentClass
Prepared SelectCmd SendUpdates
Tables Tag UpdateCmd
UpdateCmdDataSource UpdateCmdDataSourceType UpdatableFieldList
UpdateNameList UpdateType UseDeDataSource
UseMemoSize WhereType

Methods
AddProperty AutoOpen CursorAttach
CursorDetach CursorFill CursorRefresh
ReadExpression ReadMethod ResetToDefault
WriteExpression

Events
AfterCursorAttach AfterCursorClose AfterCursorDetach
AfterCursorFill AfterCursorRefresh AfterCursorUpdate
AfterDelete AfterInsert AfterUpdate
BeforeCursorAttach BeforeCursorClose BeforeCursorDetach
BeforeCursorFill BeforeCursorRefresh BeforeCursorUpdate
BeforeDelete BeforeInsert BeforeUpdate
Destroy Error Init
------------------------------







>
>I'm rewriting an 1 tier app into C/S in VFP 7. The application should work with both local data as remote data as transparent as possible. Therefore I decided to use (remote and local) views where possible for accessing the data. For the cases where SPT is required there is code written to handle those cases. So basicly the app is both 1 tier as 2 tier (classic C/S).
>
>Since, I don't own a copy of VFP 8 beta, I cannot determine the best strategy to take advantage of the cursor adapter class when this project is build in VFP 8.
>
>Are there special considerations in order to make a VFP 7 to VFP 8 transitions as smooth as possible ? Could you tell more about the advantages of using the cursor adapter class ?
>
>Walter,
>
>
>
>>Hi Walter,
>>
>>Good question. Can you provide more details? Is this traditional 2-tier C/S or n-tier?
>>
>>
>>>Hi john,
>>>
>>>O.K. I've got a question.
>>>
>>>I'm busy writing a C/S app in VFP 7. Since it won't be released before early next year, I guess I want to take advantage of the features of VFP 8.
>>>
>>>One of the features I really like is the Cursor adapter class. Now the question is how to prepare my VFP 7 project so that when using the cursor adapterclass it takes the least amount of effort to implement this.
>>>
>>>Any thoughts ?
>>>
>>>Walter,
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform