Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculated field
Message
From
22/01/2017 14:36:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/01/2017 05:01:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2016
Database:
MS SQL Server
Application:
Desktop
Virtual environment:
Hyper-V
Miscellaneous
Thread ID:
01646855
Message ID:
01646943
Views:
52
>>>>>>>is possible to create a calculated field in a VFP table?
>>>>>>
>>>>>>As Borislav said, not directly. You could probably do something rules.
>>>>>>
>>>>>>Tamar
>>>>>
>>>>>Calculated field is present in BROWSE,
>>>>>I was hoping I had missed something.
>>>>>
>>>>>I will use DEFAULT for the INSERT and explicit UPDATE,
>>>>>but the space in the DBF was the thing I wanted to avoid.
>>>>
>>>>BTW why you need it?
>>>>You can have it in Browse, in Grid in every control you want.
>>>
>>>It is not a direct visible table, it is used on background with a data schema,
>>>automatic calculated fields simplify the code..
>>
>>
>>As Borislav said you don't need it. In SQL server too, except for the persisted ones, they are just definitions filled in during a select.
>>
>>You can index a cursor on the fly, and also as Hilmar pointed out you could index on an expression (what a calculated field is).
>
>i cannot do it into sql server. i need minimal traffic on odbc sessions.

I didn't say "do it in SQL server". What I meant was, in SQL server too, calculated fields are only a definition and filled on select.
Ç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
Previous
Reply
Map
View

Click here to load this message in the networking platform