Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to equal two Characters
Message
From
27/01/2010 19:51:32
 
 
To
27/01/2010 17:48:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01446224
Message ID:
01446281
Views:
21
>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()
Previous
Reply
Map
View

Click here to load this message in the networking platform