youil
Messages postés67Date d'inscriptionvendredi 28 mars 2003StatutMembreDernière intervention12 juillet 2011
-
13 déc. 2007 à 14:40
youil
Messages postés67Date d'inscriptionvendredi 28 mars 2003StatutMembreDernière intervention12 juillet 2011
-
14 déc. 2007 à 01:37
Je veux ajouter ou modifier un champs mémo dans une table foxpro .dbf avec une chaîne qui contiens un saut de ligne. Quand je place le caractère 10 dans ma string j'ai une erreur, mais quand je place une chaîne normale pas de saut de ligne ça fonctionne quoi faire ?
Voici ma connection (con_foxpro):
Dim con_fox
As Odbc.OdbcConnection
con_fox =
New Odbc.OdbcConnection(
"BackgroundFetch=Yes;DSN=Visual FoxPro Tables;UID=;SourceType=DBF;Collate=Machine;SourceDB=C:\;Exclusive=No")
Voici ma requête:
dim ssql as string
ssql =
"Update actifs2 Set notes='" & txt.Text &
"' Where num=1"
ajouter_insert_foxpro(ssql
)
voici ajouter_insert_foxpro:
Dim
insert_com
As
New Odbc.OdbcCommand
con_foxpro
insert_com.Connection = con_fox
insert_com.CommandText = lien