Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to equal two Characters
Message
De
27/01/2010 19:51:32
 
 
À
27/01/2010 17:48:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01446224
Message ID:
01446281
Vues:
22
>helllo >all
>
>IF ALLTRIM(cnextnum) = ALLTRIM(thisform.pageframe1.page5.txtgarnum2.Value) 
>	ape =VAL((SUBSTR(cNextnum,8,2)))
>	ape=ape+1
>	ape=STR(ape)
>	night=(SUBSTR(cNextnum,1,8))
>	*MESSAGEBOX(night)
>	*MESSAGEBOX(ape)
>	
>	cnextnum=(night+ape)
>	
>	MESSAGEBOX(cNextnum) 
>	*MESSAGEBOX(ape)
>	*MESSAGEBOX('caught')
>	
>	
>	ELSE
>	ENDIF 
>
>i hav a tiny wini problem its not a problem really but an issue id like to change
>both night and ape are var and using the + is the only way i know to join them but its leaving this huge gap between night and Ape(yea i will rename my variables but i dont like thinking of good ones while i code)
>

STR() has a default length of 10. The gap is all those extra spaces. Use TRANSFORM() rather than STR()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform