Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null date to empty(and back again)
Message
 
À
25/08/2009 18:14:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01420493
Message ID:
01420681
Vues:
47
> Is there a fast and easy way to convert to blank VFP dates when using the view, and saving to the backend as null or whatever?

Without cursor adapters, no. If you use views, you can't even manipulate the result set, because that would be seen as a data change that needs to be updated. The easiest approach with a view would probably be to use a different cursor for the user interface. Copy data from the view into a temporary cursor. When the user changes data, put them back into the view.

It's easier with SPT, though. As you need to generate the INSERT and UPDATE statements yourself, you could perform any data conversion you need.

> *if* I can get things to behave.

What are the exact problems that you are encountering?
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform