since i changed to SP17, to get this new warning about POU "GetNextClient". I really use this often in my project.
Does anyone know how to use VisuUtils instead?
hope the example of "VU.IVisualizationClientIteration" will help.
THX for this. I will check this if i have time.
Edit: i think i need some food for thought.
I have several functions which use "GetNextClient"
FUNCTION CheckClientCount : INT
pClient : POINTER TO VisuElems.VisuElemBase.VisuStructClientData;
WHILE (pClient := VisuElems.VisuElemBase.g_ClientManager.GetNextClient()) <> 0 DO
IF pClient^.GlobalData.ClientType = VisuElems.VisuElemBase.Visu_ClientType.WebVisualization THEN
have you checked out the example by Thomas?
You can adjust the ClientFilter or use a predefined one from the VisuUtils.
yes, i checked the example, but at the moment, i don't understand how to replace "GetNextClient" with this what @Thomas has done in his example.
In the example, the custom filter "ClientFilter" is used as itfClientFilter.
The "ClientFilter" accepts currently all clients, since "IsAccepted" always returns true
You can use the "ClientFilter" from the example, but VisuUtils also provides some predefined filters, see "Globals" inside VisuUtils.
Once you defined your filter, check out "VisuClientIteration".
In your case I would reset your counter inside "StartIteration" and increase it in HandleClient.
Log in to post a comment.