English
Forum

match$

 

GDL
Hallöle,

after I match$ in nprocs benefit would like,

have I me what integrally simples zusammengeschustert.

is of course nothing berühmtes, but it tuts for me.
CompileMarkSeparation
 {$CLQ}
declare h$,d$
cls
h$="menschmeierjuchu dada"
d$=match("erju",h$)
print d$
d$=match("meier",h$)
print d$
d$=match("m",h$)
print d$
d$=match("a",h$)
print d$
d$=match("BB",h$)
print d$+" not vorhanden"

nproc match(string search,string fountain){

    'Suchbegriff becomes only once sought
    declare start&,v&
    v&=0
    start&=1

    whilenot start& > len(fountain)

        if Mid(fountain,start&,len(search))=search

            v&=1
            break

        endif

        start&=start&+1

    wend

    case v&=0:search=""
    return search

}

waitinput

Grüßle
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
09/08/15  
 




GDL
goes too for instr(.....)

from the Function Reference:


InStr(sNeedle,sText,lFrom)

Return Value: Long, position of String sNeedle in the string sText with Search ex position lFrom or. 0, if no Vorkommen include is.

important: In current Version is these function defective and therefore Please not To benefit.


substitute:
CompileMarkSeparation
'position=instring(variablesuchen,variablequelle)

nproc instring(string search,string fountain){

    'Suchbegriff becomes only once sought
    declare start&,v&
    v&=0
    start&=1

    whilenot start& > len(fountain)

        if Mid(fountain,start&,len(search))=search

            v&=1
            break

        endif

        start&=start&+1

    wend

    case v&=0:start&=0
    return start&

}

 
XProfan X3
Windows7 Xprofan 8,9,10 [...]  [...] 
09/08/15  
 




Jörg
Sellmeyer
[OFFTOPIC]I Have time whom cover korrigiert, there one with "much" somehow not so much begin can...[/OFFTOPIC]
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/09/15  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.077 Views

Untitledvor 0 min.
Gast.0815 vor 11 Tagen
RudiB.03/21/21
GDL11/26/17
Ernst06/24/16
More...

Themeninformationen

this Topic has 2 subscriber:

GDL (2x)
Jörg Sellmeyer (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