General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Network:
Windows 2003 Server
Hola
yo creo el cursor adapter en el load del form, es decir que establezco la propiedad Selectcmd durante el proceso de carga del form. Quiero decir con esto que podes cambiar esa propiedad en el load si queres hacerlo
Lo que sigue es la creacion de un cursoradapter, la propiedad Selectcmd la establezco en la variable cSelectcmd.
Espero que te sirva
Hernan
PD, no te convendria un foro en castellano? aca vas a tener muy pocas respuestas asi ( creo :-) )
WITH THISFORM
LOCAL cAlias AS String, cTable AS String, cCampoId AS String, lUpdates AS Boolean,;
cSelectCmd AS String, cSchema AS String, cUFL AS String, cUNL AS Strings
cAlias = "curHaberes"
cTable = "Haberes"
cCampoid = "Haberid"
lUpdates = .T.
cSelectCmd = "SELECT Haberes.haberid, Haberes.periodoid "+;
"FROM sueldos!haberes "+;
"WHERE Haberes.periodoid = " + ALLTRIM(STR(.Periodoid, 9, 0))
TEXT TO cSchema NOSHOW PRETEXT 15
haberid i,
periodoid i
ENDTEXT
TEXT TO cUFL NOSHOW PRETEXT 15
haberid,
periodoid
ENDTEXT
TEXT TO cUNL NOSHOW PRETEXT 15
haberid Haberes.haberid,
periodoid Haberes.periodoid
ENDTEXT
cSchema = CHRTRAN( cSchema, CHR(13) + CHR(10), " " )
cUFL = CHRTRAN( cUFL, CHR(13) + CHR(10), " " )
cUNL = CHRTRAN( cUNL, CHR(13) + CHR(10), " " )
.CA("oCA1", cAlias, cTable, cCampoId, lUpdates, cSelectCmd, cUFL, cUNL, cSchema)
ENDWITH
Hola a todos!!!
alguien sabe como puedo cambiarle el valor a la propiedad Selectcmd del cursor adapter????
Gracias!!!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only