Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force Calculated Field to Type Integer in View?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00727704
Message ID:
00727868
Vues:
9
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform