English
Forum

trouble with match$

 

GDL
Hallöle

I see whom woods not sheer trees More.
to that understanding have I one Image appended.

Why goes here match$ not ?
CompileMarkSeparation
Dim datei#,10000
Assign #1,gettext$(dbfedit1&)
OpenRW #1
x%=@BlockRead(#1,datei#,0,10000)
Close #1
name$=char$(datei#,0,x%)'DBF-Datei steht in name$
dispose datei#
x%=1
print name$
print ""
print ""
assign #1,gettext$(stringedit1&)
reset #1

WhileNot @EOF(#1)'Felder ermitteln

    Input #1,dzeile$
    y%=InStr(";",dzeile$,0)-1
    dzeile$=left$(dzeile$,y%)
    dzeile$=upper$(dzeile$)
    print dzeile$

    If Match$(dzeile$,name$)=dzeile$

        cls

    endif

EndWhile

clos
#1



lying it on whom command blockread and char The name$ somehow with additional Steuerzeichen describe?

One nachvollziehbares example:
CompileMarkSeparation
declare name$,dzeile$,File#,x%,y%
dim File#,10000
assign #1,"test.str"
rewrite #1
print #1,"test;C;100;0"
print #1,"test1;C;100;0"
print #1,"test2;C;100;0"
close #1
dbcreate "test.str" > "test.dbf"
Assign #1,"test.dbf"
OpenRW #1
x%=@BlockRead(#1,File#,0,10000)
Close #1
name$=char$(File#,0,x%)'DBF-File standing in name$
print name$
x%=1
print ""
print ""
assign #1,"test.str"
reset #1

WhileNot @EOF(#1)'boxes detect

    Input #1,dzeile$
    y%=InStr(";",dzeile$,0)-1
    dzeile$=left$(dzeile$,y%)
    dzeile$=upper$(dzeile$)
    print dzeile$

    If Match $(dzeile$,name$)=dzeile$

        beep

    endif

EndWhile

close #1
assign #1,"test.str"
erase #1
close #1
assign #1,"test.dbf"
erase #1
close #1
waitinput
dispose File#

Grüßle
Georg

73 kB
Hochgeladen:09/27/14
Downloadcounter101
Download
 
Windows7 Xprofan 8,9,10 [...]  [...] 
09/27/14  
 




GDL
one nachvollziehbares example supra edited.
 
XProfan X3
Windows7 Xprofan 8,9,10 [...]  [...] 
09/27/14  
 




GDL
Hallöle,

have it now without match$ for me resolved.
CompileMarkSeparation
declare name$,dzeile$,datei#,x%,y%,ansonsten$,lang%,n$,such%,a%
dim datei#,10000
assign #1,"test.str"
rewrite #1
print #1,"test;C;100;0"
print #1,"test1;C;100;0"
print #1,"test2;C;100;0"
close #1
dbcreate "test.str" > "test.dbf"
Assign #1,"test.dbf"
OpenRW #1
x%=@BlockRead(#1,datei#,0,10000)
Close #1
name$=char$(datei#,0,x%)'DBF-Datei steht in name$
print name$
x%=1
print ""
print ""
assign #1,"test.str"
reset #1
such%=len(name$)

WhileNot @EOF(#1)'Felder ermitteln

    Input #1,dzeile$
    y%=InStr(";",dzeile$,0)-1
    dzeile$=left$(dzeile$,y%)
    dzeile$=upper$(dzeile$)
    print dzeile$

    If Match$(dzeile$,name$)=dzeile$

        print "Gefunden"

    else

        print "geht nicht"

    endif

    'diese Befehle gehen
    ansonsten$=translate$(name$,dzeile$,"XXXXXXX")
    print ansonsten$
    print "________________________"
    'dies hier geht
    lang%=len(dzeile$)
    clear a%

    whilenot a% > such%

        n$=mid$(name$,a%,lang%)
        case n$=dzeile$:print "mit diesem Weg gefunden"
        inc a%

    wend

EndWhile

close #1
assign #1,"test.str"
erase #1
close #1
assign #1,"test.dbf"
erase #1
close #1
waitinput
/../Function-References/XProfan/dispose/'>dispose File#

Grüßle
Georg
 
XProfan X3
Windows7 Xprofan 8,9,10 [...]  [...] 
09/28/14  
 



Hello Georg,

some Error.

Instr dritter Parameter with you worth 0, so can instr not - minimum worth 1 or third Param in Your drop same omit.

Fehlerzeile:

y%=InStr(";",dzeile$,0)-1


so GEHTS:

y%=InStr(";",dzeile$,1)-1


or:

y%=InStr(";",dzeile$)-1


additionally:

The function Match shining not Binärsicher To his.

The Help moreover means:

T: String - Text, in the to the Suchmuster sought becomes
 
10/18/14  
 




GDL
Hallöle,

many Thanks. means stay I with of my umständlichen but gehenden Version.

Grüßle
Georg
 
XProfan X3
Windows7 Xprofan 8,9,10 [...]  [...] 
10/19/14  
 



there have You but too Instr worth v. third Param 0 ,

the can't functions or. is wrong.
 
10/19/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.838 Views

Untitledvor 0 min.
Andre Rohland09/08/18
RudiB.01/25/16
maroro08/11/15
Peter Max Müller05/14/15
More...

Themeninformationen

this Topic has 2 subscriber:

GDL (4x)
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