Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculated field
Message
De
20/01/2017 07:44:54
 
 
À
20/01/2017 07:38:38
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
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 9 SP2
OS:
Windows 10
Network:
Windows Server 2016
Database:
MS SQL Server
Application:
Desktop
Virtual environment:
Hyper-V
Divers
Thread ID:
01646855
Message ID:
01646896
Vues:
54
>>>>>is possible to create a calculated field in a VFP table?
>>>>You need to create a view on the table and use that view
>>>
>>>Thank you.
>>>I need an index on computed field :(
>>
>>You can index a view -
>>
>>
>>&& form load 
>>use viewname in 0 nodata
>>select viewname
>>index on fieldname tag xxx
>>
>>&& later 
>>Viewparam1 = ...
>>
>>=Requery('viewname')
>>
>
>Hi Gregory
>
>try
>
>&& form load 
>use viewname in 0 nodata
>select viewname
>index on fieldname tag xxx
>
>&& later 
>Viewparam1 = ...
>
>=Requery('viewname')
>
>index on fieldname2 tag xyz
>
>
>fo all I remember it was
>
>INDEX ON fieldname2 TAG xyz OF CDX(1) ADDITIVE
>
>
>edit:
>
>Cursordapter needs same solution.
>INDEX ON creates a cdx based on dbf(). Every REQUERY() changes the dbf(), so the second INDEX ON will try to create a second cdx file

I don' t know, but that is what I do
(1) I only index a view once - before the first requery()
(2) I use the index command as I wrote
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform