Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EVALUATE() Equivalent function in .NET
Message
De
17/07/2007 19:24:19
 
 
À
17/07/2007 18:31:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01241330
Message ID:
01241348
Vues:
37
You can use the StringBuilder class:
StringBuilder sb = new StringBuilder();
sb.Append("SELECT *");
sb.AppendFormat(" FROM {0}",YourTableName);
sb.AppendFormat(" WHERE cName LIKE '{0}%'", WorkGroup);
sb.AppendFormat(" AND dIntervalStart >= '{0}' AND dIntervalStart < '{1}'", StartDate, EndDate);
sb.Append(" GROUP BY cName");
string sql = sb.ToString();
            
SqlConnection cn = new SqlConnection(SqlDataSource);
SqlCommand cm = new SqlCommand(sql, cn);
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform