Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
& one sql comand
Message
De
05/03/2003 14:22:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
& one sql comand
Divers
Thread ID:
00761710
Message ID:
00761710
Vues:
50
Hi

I have this :
IF Type(FichaAni2.Field_type) = "C"
	
		
cWhere = "Upper(AllTrim(" + ;
Upper(AllTrim(FichaAni2.Field_name)) + "))" + ' ' + ;
AllTrim(FichaAni2.Operador) + ;
IIf(FichaAni2.Operador = "=" ,"=","" ) + ' ' + "'" + ;
Upper(Alltrim(FichaAni2.Letras)) + "' " 
					
					
ENDIF

later , i make cWhere = "SELECT ... ... " + cWhere 

and &cWhere  , works ok


&& But , when type is numeric , don´t work


cWhere = 	FichaAni2.Field_name + ' ' + ;
AllTrim(FichaAni2.Operador) + ' ' + "'" + ;
Str(FichaAni2.Numeros)  + ")' "  && here i need write only FichaAni2.Numeros 
&& if i write Str(FichaAni2.Numeros) , i don´t have the result i need in later sql . if don´t write Str() here , i don´t have an error .
Any ideia ?

Thanks


Pedro Silva

world is wonderful with your help .

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform