Search found 5 matches

by GammaSerpentisFTW
18 Jan 2018, 09:03
Forum: Ask for Help (v1)
Topic: IfInString trouble Topic is solved
Replies: 2
Views: 391

Re: IfInString trouble Topic is solved

just me wrote:The default line break on Windows consists of two characters: carriage return `r and line feed `n. So use

Code: Select all

BlacklistArray := StrSplit(BlacklistDump, "`n", "`r")
to remove the `r from the result.
Indeed, that helped! Thank you!
by GammaSerpentisFTW
18 Jan 2018, 07:32
Forum: Ask for Help (v1)
Topic: IfInString trouble Topic is solved
Replies: 2
Views: 391

IfInString trouble Topic is solved

It's very strange and I don't understand, how can it be so. Please help, I'm almost in despair, really. I have a .txt with some lines with text and blacklist.txt with blacklisted words. I want to get rid of the lines with blacklisted words in them. Simple, right? Here is what I did: ; loading the in...
by GammaSerpentisFTW
19 Dec 2017, 10:32
Forum: Ask for Help (v1)
Topic: Removing last N strings from .txt
Replies: 1
Views: 348

Removing last N strings from .txt

I honestly searched forums and googled and I haven't found the optimal solution for this. So I have a rather big log.txt (over 50000 lines, 5 mb or so) and it's gonna be bigger. Every line starts with a parsed date and time like this: 2017.12.17 16:51:15 My script adds 100 lines to log.txt with ever...
by GammaSerpentisFTW
17 Dec 2017, 10:38
Forum: Ask for Help (v1)
Topic: Very simple stuff, have no clue. Topic is solved
Replies: 4
Views: 660

Re: Very simple stuff, have no clue. Topic is solved

Thank you, jeeswg! It works, I will use parentheses from now on.
by GammaSerpentisFTW
17 Dec 2017, 10:05
Forum: Ask for Help (v1)
Topic: Very simple stuff, have no clue. Topic is solved
Replies: 4
Views: 660

Very simple stuff, have no clue. Topic is solved

In short: if year > oldyear msgbox yay year = 2134 oldyear = 0 No msgbox, but if I change it to: if year > 0 msgbox yay Got msgbox with "yay" What am I missing here? Full code: string = "year: 2134 month: 11" oldyear := 0 string := SubStr(string, InStr(string, "year: ") + 6) ; =2134 month: 11" year ...

Go to advanced search