Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Am I tired ?
Message
De
13/02/2008 11:17:12
 
 
À
13/02/2008 02:50:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01291041
Message ID:
01292188
Vues:
29
I think Cetin is better qualified to give you the answer you are looking for. I thought you were querying Foxpro dbfs via OLEDB and I didn't think the SQL Syntax would work with # # as Foxpro uses date delimeters of { }

Cetin ?


>Hi,
>
>( I have my ADSL break for 2 days ... )
>
>I am working/learning ASP.NET, C# and use my DBC and DBF for data containers.
>
>Yes, this is filter and the wright answer is:
>
>
>
>< % @Import Namespace = "System.Globalization" % >
>
>CultureInfo usCulture = new CultuireInfo("en-us")
>
>cmd.CommandText =
>string.Format(usCulture,"SELECT * from .... WHERE EventDate >=#{0:d}# and ... <= #{1:d}#)
>
>
>
>This way any data format is allways corect interpret as MM/dd/yyyy !.
>
>But, in fact my original Q., beside this main problem had another component ...
>
>How sholud I write above statement but not using String.Format(). Only SELECT ... and
>what is required ?
>
>Regards, Gojko


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform