I need ro configure code in Pi Process Book for "fit to All" & " No symbol Selection".
Please revert if you have nay idea about it.
The below code should work.
ThisDisplay.Zoom = "FitAll"
ThisDisplay.SelectedSymbols.Item(1).Selected = False
Thanks Akash for this answer, although if there are multiple items selected then something like this code would be required to deselect all of them:
Dim i As Integer
For i = ThisDisplay.SelectedSymbols.Count To 1 Step -1
ThisDisplay.SelectedSymbols.Item(i).Selected = False
This will iterate through the array of selected symbols deselecting them one by one. It iterates backwards so they come off the end, as opposed to coming off the front and needing to move everything down one position every time. It really shouldn't matter though if you were to do something like For i = 1 to ThisDisplay.SelectedSymbols.Count for the for loop, and then ThisDisplay.SelectedSymbols.Item(1).Selected=False inside the loop.
Retrieving data ...