| |
|
|
Johannes Meyer | Hey ho,
following thing i'd gladly Translate$ with two Suchmustern use. Translate should The strings 11 and 12 replaced. ought to really with @Set("RegEx", 1) with squeeze out which one then of Match$ take can functions.
unfortunately functions not Perhaps has here Yes who a idea where my Error lying :/
possible does it with the Suchstring only match$ what Real angry would target is the it with 5 x 1 hits reports
here the code. CompileMarkSeparationDeclare inhalt%[15],inhalt$
var found$="11"'testen mit [11-12] oder [11|12]
@Set("RegEx", 1)
cls
inhalt%[1]=1
inhalt%[4]=1
inhalt%[7]=11
inhalt%[10]=12
inhalt%[13]=1
Proc Check
WhileLoop 1,12,1
Print @Translate$(inhalt$,found$,@Str$(&Loop))
Sleep 100
'Reihe A
If @Str$(&Loop)+","+@Str$(&Loop)= @Translate$(inhalt$,found$,@Str$(&Loop))
Print "treffer"
EndIf
If @Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)= @Translate$(inhalt$,found$,@Str$(&Loop))
Print "treffer"
EndIf
If @Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)= @Translate$(inhalt$,found$,@Str$(&Loop))
Print "treffer"
EndIf
If @Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)= @Translate$(inhalt$,found$,@Str$(&Loop))
Print "treffer"
EndIf
EndWhile
EndProc
inhalt$ = @Str$(inhalt%[1])+","+@Str$(inhalt%[4])
Check()
inhalt$ = @Str$(inhalt%[1])+","+@Str$(inhalt%[4])+","+@Str$(inhalt%[7])
Check()
inhalt$ = @Str$(inhalt%[1])+","+@Str$(inhalt%[4])+","+@Str$(inhalt%[7])+","+@Str$(inhalt%[10])
Check()
inhalt$ = @Str$(inhalt%[1])+","+@Str$(inhalt%[4])+","+@Str$(inhalt%[7])+","+@Str$(inhalt%[10])+","+@Str$(inhalt%[13])
Check()
WaitInput
Würd me over Help very forward ;) |
|
|
| Gruß, Johannes
Programmiert in Profan X2 (Release) Gravity the Game | 12/07/12 ▲ |
|
|
|
|
Jörg Sellmeyer | |
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 12/08/12 ▲ |
|
|
|
|
Johannes Meyer | thanks first times for your response.
Update: I look time whether me the Example of you weiterhilft and what it very power.
update2: seems a Lösungsweg To his must now whom ansatz yet supra into code integrate and hoping the it then so works How pseudo ;) |
|
|
| |
|
|
|
Johannes Meyer | Error found of Andreas Miethe, functions now How pseudo.
instead of [11|12] must I (11|12) take , The square bracket was wrong.
Topic can then closed go. |
|
|
| |
|
|