06-26-2018, 03:01 PM
Good morning QM Forum,
I've been trying to accomplish this task without asking, but I'm stuck at the last bit of information that I need. I'm working on a collaborative macro that displays online users in the main dialog box. It gets this information from a web page using InitGetFile. I've simulated that process with the accountList str. When a user signs out of the software I want to remove them from the list. If the account isn't the first in the list the example works perfectly, but if the account is the first item in the list it will leave the top spot empty instead of replacing it.
I know that I can find the line of the username with numlines and can check if line = 0, but I'm not sure how to remove the empty item at the top.
Macro Example String Replacement
I've been trying to accomplish this task without asking, but I'm stuck at the last bit of information that I need. I'm working on a collaborative macro that displays online users in the main dialog box. It gets this information from a web page using InitGetFile. I've simulated that process with the accountList str. When a user signs out of the software I want to remove them from the list. If the account isn't the first in the list the example works perfectly, but if the account is the first item in the list it will leave the top spot empty instead of replacing it.
I know that I can find the line of the username with numlines and can check if line = 0, but I'm not sure how to remove the empty item at the top.
Macro Example String Replacement