Question

I am using the function here The Function Here

I do this, StartProcess('b4a_c2dm.bat','send ' + Trim(edit1.Text)+' ' + Trim(edit2.Text ),False,False);

This works great for the edit1.text (This is the name to send message to)

There will be a memo1 with multiple lines of names to send to. I need a way to call the StartProcess using the memo1 list of names instead of the edit1 single name.

The goal is to have it use the StartProcess over and over using the list of names in the memo1.

Thanks for your help.

Was it helpful?

Solution

Run a simple for loop over the lines of the memo like this:

for i := 0 to Memo1.Lines.Count-1 do
  StartProcess(..., Memo1.Lines[i], ...);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top