Greetings Gurus,
I have run out of ideas on how to perform some string manipulations and am hoping you may help. I am trying to extract substrings from a logfile and insert them into my db.
Example strings:
12:14:56 - bob - logon - bobspc - 192.168.0.1 - 192.168.0.2 - thisserver - 1,2,3,4,5
12:15:11 - harry - logoff - harryspc - 1.12.13.15 - 192.168.0.5 - theotherserver - 1,8,11,13,100
so, the only thing that the strings have in common is that the substrings are "delimited" by hyphens (-).
I have tried using InStr and Mid functions but I either chop off some text that I want or overflow into the next substring.
What I am trying to achieve on my form is:
Text1 = time
Text2 = name
Text3 = event
Text4 = source
Text5 = logonIP
Text6 = serverIP
Text7 = servername
Text8 = whatever
Any ideas please?
I have run out of ideas on how to perform some string manipulations and am hoping you may help. I am trying to extract substrings from a logfile and insert them into my db.
Example strings:
12:14:56 - bob - logon - bobspc - 192.168.0.1 - 192.168.0.2 - thisserver - 1,2,3,4,5
12:15:11 - harry - logoff - harryspc - 1.12.13.15 - 192.168.0.5 - theotherserver - 1,8,11,13,100
so, the only thing that the strings have in common is that the substrings are "delimited" by hyphens (-).
I have tried using InStr and Mid functions but I either chop off some text that I want or overflow into the next substring.
What I am trying to achieve on my form is:
Text1 = time
Text2 = name
Text3 = event
Text4 = source
Text5 = logonIP
Text6 = serverIP
Text7 = servername
Text8 = whatever
Any ideas please?