English
Source / code snippets

Gegenstück Setsubstr Substr

 

CompileMarkSeparation
proc setsubstr

    parameters f$,p&,sep$,t$
    declare s$,c&
    c&=0
    s$=""
    casenot mid$(f$,len(f$),1)=sep$ : f$=f$+sep$

    while len(f$)

        c&+

        if (c&=p&)

            s$=s$+t$+sep$

        else

            s$=s$+mid$(f$,1,instr(sep$,f$))

        endif

        f$=del$(f$,1,instr(sep$,f$))

        ifnot len(f$)

            case c&<p& : f$=f$+sep$

        endif

    wend

    return s$

endproc

declare s$
s$:="Hallo Welt"
s$:=trim$(setsubstr(s$,2," ","wält"))
print s$
waitkey
salvo, iF.
 
08/18/05  
 



ex XProfan10 even so simply:
CompileMarkSeparation
proc SetSubStr

    parameters Neu$, S$, Nr%, Del$
    return ins$(Neu$, del$(S$, Nr%, 1, Del$), Nr%, Del$)

endpr
 
05/12/06  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.656 Views

Untitledvor 0 min.
Gast.081509/06/24
H.Brill05/13/21
marian11/27/12

Themeninformationen

this Topic has 1 subscriber:

iF (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie