Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric fields in SQL vs VFP
Message
From
02/04/2010 17:00:06
 
General information
Forum:
Microsoft SQL Server
Category:
Database design
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01458467
Message ID:
01458567
Views:
37
I will look into it. Thank you

>I'm thinking, that you can bring definitions of the numerical fields from SQL Server using Information_Schema.Columns view (the fields that participate in each particular form) and then compare juststem(ControlSource) against the cursor of such fields.
>
>>Thank you Naomi.
>>
>>At this point I am trying to figure out an efficient way to find the type of the control source of the field. The only way I know how to do it is to create an array using AFILED() and search for the particular field in the array for the size. But I am really hoping for something better. I guess, I can create a number of form array properties for each table I need to find the field type. Then in the gotfocus() of the textbox search for the type in the corresponding array and set the format accordingly.
>>
>>But I was hoping for something less "dramatic".
>>
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform