Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote view, NULL and Fox 2.x tables
Message
De
12/12/2000 09:37:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00452125
Message ID:
00452170
Vues:
22
Nancy,
Remote views uses ODBC and it doesn't allow empty dates AFAIK. After scatter memvar you could loop through fields and if type is date provide {^2000/12/1899}. And maybe revert at other site to empty dates ?
Hope someone else have a better idea and jumps in.
Cetin

>Thanks, Cetin. This seems to have cleared up the problem for all field types except date fields. Any ideas on how to force date fields to blank, not NULL?
>
>Again, thanks for your help.
>
>Nancy
>
>>>Hello,
>>>
>>>I'm working on a VFP 6 application that must reference .dbf files which are still used by a Fox 2.6 application. The VFP application must also be used across a T1 so I am using remote views to keep performance at an acceptable level.
>>>
>>>My problem is that VFP returns a "NULL not allowed" error on Tableupdate(). Should I be initializing every field to blank when I append a record (or check each field for NULL if editing) before issuing Tableupdate()?
>>>
>>>Any help or comments will be appreciated!
>>>
>>>Nancy Price
>>
>>Nancy,
>>You could initialize all blank :
>>select myView
>>scatter memvar memo blank
>>insert into myView from memvar
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform