Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBSETPROP and aliases
Message
From
25/06/1999 13:54:38
 
 
To
25/06/1999 07:52:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00233880
Message ID:
00234046
Views:
28
>I have a remote view with a datetime field that I would like to change to a simple date field before the user gets a hold of it. The problem I'm running into is that I have used an alias name in the data environment and the DBSETPROP(alias.fieldname, "FIELD","DATATYPE","D") is ignored (even though it returns .T.). Does anybody know how to reference the fieldname properly?
>
>Thanks

You can get the name of the underlying view first like:

lcViewName = CURSORGETPROP("SourceName","Alias")

DBSETPROP(lcViewName + "Yourfieldhere", "FIELD","DATATYPE","D")
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform