Hi I want to read ip and port form a txt file and make them into variables:
I though of ReadLn, to get the line "ip.goes.here:port" but how do i seperate it into 2 variable that I can use for my macro?
thx in advance!
Seperation into variables
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Use the Separate command:
Separate>line,:,vars
The colon is the delimiter in this case. You will end up with vars_1 with the IP address and vars_2 with the port number.
Separate>line,:,vars
The colon is the delimiter in this case. You will end up with vars_1 with the IP address and vars_2 with the port number.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Probably because you are not stepping through all the code? Maybe you're missing some important code by running the debugger from a line later in the process. If you want to run the whole thing in the editor make sure the first line is selected because the debugger runs or steps from the selected line (the line where the cursor is).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?