User Tools

Site Tools


prime:misctips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
prime:misctips [2017/10/31 05:13]
webmasterpdx
prime:misctips [2017/10/31 21:06]
webmasterpdx
Line 10: Line 10:
  
 The \ character is generated from the Shift-Vars/​Chars key. It's on the first page of characters. The \ character is generated from the Shift-Vars/​Chars key. It's on the first page of characters.
- 
-To remove characters from a string, you can use S:​=suppress(S,​3);​ to remove the 3rd character from the string S. However, the optimal way to drop characters from a string is to use the following function, STRDEL(). 
-<​code>​ 
-// Drops characters from string 
-// S   ​string 
-// L   ​Position before first character to drop 
-// R   ​Position after last character to drop 
-// e.g. S:​=STRDEL(S,​3,​7);​ drops S(4), S(5) and S(6) from S. 
-EXPORT STRDEL(S,​L,​R) 
-BEGIN 
-RETURN LEFT(S,​L)+RIGHT(S,​DIM(S)-R+1);​ 
-END; // BEGIN... 
-</​code>​ 
  
 Screen real estate is as follows. Screen real estate is as follows.
prime/misctips.txt · Last modified: 2017/11/15 23:17 by webmasterpdx