Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and query
Message
 
À
17/12/1997 15:42:39
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00066710
Message ID:
00066827
Vues:
35
Try:

ThisForm.Grid1.RecordSource = "SELECT DISTINCT Nota.cod_nota, Nota.nota_num, Nota.razao_soc," + ;
"Prodnota.cod_prod, Produtos.desc_prod " + ;
"FROM poadesp!nota, poadesp!prodnota, poadesp!forneced, poadesp!produtos " + ;
"WHERE ALLTRIM(ProdNOTA.cod_prod) = ALLTRIM(PRODUTO) " + ;
"AND PRODUTOS.COD_PROD = PRODNOTA.COD_PROD " + ;
"AND Prodnota.cod_nota = Nota.cod_nota " + ;
"INTO CURSOR PESQUISA"

a string constant cannot span multiple lines, so you have to break it up and concatenate multiple single line
strings

HTH
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform