Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Views defined programmatically and default value
Message
From
30/11/1998 10:32:44
 
 
To
30/11/1998 06:08:23
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00162348
Message ID:
00162410
Views:
25
Hi, Christian.

Actually, if your post is accurate, I *think* your problem was using the same quote demarcation. IOW, change it to using a combination of double-tic and single-tic quotes. In the example I changed the outer quotes marks to single-tics.

DBSETPROP("MyView.PrimaryKey", "Field", "DefaultValue", 'NewId("MyView")')

HTH

>When using the view designer, everithing is perfect. But when I use the syntax
>:= DBSETPROP("MyView.PrimaryKey", "Field", "DefaultValue", "NewId("MyView")")
> VFP tells me that I make a syntax error. I Figured that the problem was the quotes so I tried :
>= DBSETPROP("yView.PrimaryKey", "Field", "DefaultValue", NewId("MyView")).
> Then the procedure execute but still nothing assigned at the default value of my field.
Previous
Reply
Map
View

Click here to load this message in the networking platform