Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The beauty that is lost with the beautify
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00611595
Message ID:
00611685
Views:
25
Hi Gérald;
>
>CTRL+A your code
>CTRL+C to clipboard
>Run the following code
>CTRL+P back in place
>
>
>*not tested!
>nlines=ALINES(lCodeArray,_CLIPTEXT)
>_CLIPTEXT=""
>FOR i = 2 to nLines  && start with 2 to avoid trouble with lCodeArray[i-1]
>	IF lCodeArray[i]="DEFINE" AND !lCodeArray[i]="DEFINE CLASS"
>		*take the same number of tabs - chr(9) - of the prev line
>		nTabs=OCCURS(CHR(9),lCodeArray[i-1])
>		IF nTabs > 0
>			lCodeArray[i]=REPLICATE(CHR(9),nTabs)+lCodeArray[i]
>		ENDIF
>	ENDIF
>	_CLIPTEXT=_CLIPTEXT+lCodeArray[i]+ CHR(13)
>ENDFOR
>
>

Wise boy, clever idea.. But, didn't worked ! :))

It seems that nothing have been changed on the _CLIPTEXT !! Maybe, beacause I've been using spaces instead of tabs !

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform