Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force Calculated Field to Type Integer in View?
Message
From
28/11/2002 00:16:28
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00727704
Message ID:
00727868
Views:
8
Hello,

haven't expected this myself but actually it works nice, but only in VFP8 with CursorAdapter Class:
PUBLIC bla
bla = CREATEOBJECT('oTest')
bla.CursorFill(.T.,.F.)
BROWSE

DEFINE CLASS oTest AS CursorAdapter

	Alias = "v_test"
	DataSourceType = "ODBC"
	SelectCmd = "SELECT o.orderid, o.shipvia, o.freight, o.shipvia*o.freight AS NonSense FROM orders o"
	CursorSchema = "pk_adress I, shipvia I, freight N(10,2), NonSense I"

	FUNCTION Init
		THIS.DataSource = SQLCONNECT('mssql','user','pwd')
	ENDFUNC
	
	FUNCTION Destroy
		SQLDISCONNECT(THIS.DataSource)
	ENDFUNC
	
ENDDEFINE
Regards

Christian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform