English
Source / code snippets

Abschnitts-Replace for Strings

 

p.specht

CRISPR is a gentechnische shears, circa Genabschnitte the RNA to exchange. In Gen-Databases becomes such a thing beforehand accounts, to see, where one best cut and supplant. the Analog take action can on Stringvariablen utilize:

One more steadily String s$ should on position n& against String R$ on defined length ausgetauscht go. for demonstration a Button constantly pressed hold:
Window Title "DNA: Stringabschnitt austauschen"

proc replace$

    parameters stg$,at&,rep$
    ' stg$ definiert too always The Ausgabelänge
    ' at& = Einfügeposition of -(len(rep$)+2) To len(stg$)+1 (=keine Einfügung)
    return mid$(left$(stg$,at&-1)+rep$+mid$(stg$,at&+len(rep$),len(stg$)+1-(at&+len(rep$))),if(&Loop<1,-1*(&Loop-2),1),len(stg$))

Endproc

Font 2:Cls
declare s$,r$,ls&,lr&,forever&,i&
S$="GenabschnittDerZuBehandelnIst+" : s$=s$+s$
ls&=len(s$)

Repeat

    inc i&
    r$=left$("....................................VIRUSBEFALL...................................",i&)
    lr&=len(r$)

    WhileLoop ls&+1,-1*(lr&-2),-1

        Print replace$(s$,&Loop,r$)

        if %csrlin>22 : waitinput : cls : endif

        Endwhile

    Until i&=ls&

    WaitInput
    End
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
06/18/21  
 



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

1.408 Views

Untitledvor 0 min.
RudiB.09/02/22
p.specht11/18/21
Wilfried Friebe11/17/21
Jürgen Strahl11/17/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


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