| |
|
|
GDL | Hallöle
I see whom woods not sheer trees More. to that understanding have I one Image appended.
Why goes here match$ not ? CompileMarkSeparationDim 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: CompileMarkSeparationdeclare 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 |
|
|
| |
|
|
|
GDL | one nachvollziehbares example supra edited. |
|
|
| |
|
|
|
GDL | Hallöle,
have it now without match$ for me resolved. CompileMarkSeparationdeclare 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 |
|
|
| |
|
|
|
| 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 |
|
|
| |
|
|
|
GDL | Hallöle,
many Thanks. means stay I with of my umständlichen but gehenden Version.
Grüßle Georg |
|
|
| |
|
|
|
| there have You but too Instr worth v. third Param 0 ,
the can't functions or. is wrong. |
|
|
| |
|
|