Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when removing default value
Message
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00689110
Message ID:
00689305
Views:
13
This message has been marked as the solution to the initial question of the thread.
Hi Bob.

>When I change a field from char(10) to char(5) and remove the default value i get the following error:
>
>Error #12 Variable 'DEFAULT' not found
>Line # 55
>alter table (lcAlias) ........
>
>To avoid it I first have to remove the default values, save the changes, then edit and save again to change the length.

This turns out to be a bug in VFP: you can't combine the DROP DEFAULT clause with anything else without getting an error. I'll have to change SDT so it uses two separate ALTER TABLE commands under these conditions.

Thanks for the bug report!

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform