Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Similar to ALLTRIM()?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00957249
Message ID:
00957316
Views:
48
Try this in the command window, it may shed some light on the dark old technique.
? CHRTRAN('"'+'abcde   '-','-'  xyz'+'"',' ','#')
Glenn


>I am converting some programs from FoxPro 2.6a for Windows.
>
>Could someone explain to me what the following minus sign (-) is doing? I can't find this in VFP 6.0 Help. The man whom I am to replace says that it hits the end of the data in the Loading.Desc field, rather than the end fo the filed, which would include the spaces after the data. Why is this not listed in the Help File, or was it in FPW 2.6a?
>
>
>	IF UPPER(LOADING.adjust) = 'X'
>		REPLACE LOADING.DESC WITH ;
>			LOADING.DESC -'['-STR(LOADING.net)-'lbs]'
>		REPLACE LOADING.net WITH 0
>	ENDIF
>
>
>I would have done the following:
>
>	IF UPPER(LOADING.adjust) = 'X'
>		REPLACE LOADING.DESC WITH ;
>			ALLTRIM(LOADING.DESC) + '['-STR(LOADING.net)-'lbs]'
>		REPLACE LOADING.net WITH 0
>	ENDIF
>
Previous
Reply
Map
View

Click here to load this message in the networking platform