Visual Basic - ADO PARA DBF DE FOX

Life is soft - evento anual de software empresarial
 
Vista:

ADO PARA DBF DE FOX

Publicado por Quintero Darwin (2 intervenciones) el 20/05/2003 19:15:47
Soy un programador de VFox y deseo emigrar mi proyecto a VB pero quiero seguir usando mis bases de datos de Visual FoxPro NO LOGRO CONEXTAR MI DATOS CON ADO DE VB COMO SE HACE
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:ADO PARA DBF DE FOX

Publicado por Cecilia Colalongo (3116 intervenciones) el 20/05/2003 20:13:04
Dim cnt As Connection, rst As Recordset

Set cnt=New Connection

Si es una DBC

cnt.Open "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="DSN=Visual FoxPro Database;UID=;SourceDB=C:\Program Files\Microsoft Visual Studio\MSDN98\99JAN\1033\SAMPLES\VFP98\Tastrade\Data\TASTRADE.DBC;SourceType=DBC;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"

Si son DBF:

Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="DSN=Visual FoxPro Tables;UID=;SourceDB=d:\;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"

Después podes usar:

Set rst=cnt.Execute("SELECT * FROM MiTabla")

Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar