Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Type Error Message is wrong
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01474680
Message ID:
01474681
Vues:
35
if ldQuote is a date, how can you compare that with Upper(), which is presumably character?

>I have an error message coming up that says that the Data Types are different yet when I check them, they are both Date data types. The comparisons are both between DATE Data Types. Why then the error?
>
>
>		CASE .cboOrder.ListIndex = 5	&& Quote Date (dQuote)
>			LOCAL ldQuote AS Date
>			ldQuote = CTOD(ALLTRIM(UPPER(.txtSearchBy.Value)))
>			SELECT ;
>					RECNO() AS Rec_No, ;
>					QuoteID, ;
>					CustPartNo, ;
>					Proj_Name, ;
>					Cust_Name, ;
>					dQuote, ;
>					Material1 ;
>				FROM Quotes ;
>				WHERE UPPER(dQuote) = ldQuote ;
>				INTO CURSOR tmpQuotes2
>			
>			SELECT tmpQuotes
>			ZAP IN tmpQuotes
>			APPEND FROM DBF("tmpQuotes2")
>			LOCATE
>		
>	ENDCASE
>	.grdFindQuote.Refresh()
>	.grdFindQuote.SetFocus()
>ENDWITH
>
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform