ACF Library

GetMatchingWindowName

Back to List

Description: Get the full FileMaker Window title matching a partly title from the open windows list.

Call options

FileMaker calculation

Set Variable [$res; ACF_Run("GetMatchingWindowName"; string_match)]

Category: UTILITY

Function source:

function GetMatchingWindowName(string match)

   string windowNames = @WindowNames@;
   array string winList = explode ( "\r", windowNames); 
   int i,k = sizeof (winList); 
   for (i = 1, k)

      if (pos(winList[i], match) >= 0) then
         return winList[i]; 
      end if
   end for
   return ""; 
end

The GetMatchingWindowName function

If you have several open windows in filemaker, and the windows have names like "Order 123456", and you want the title of the window independent of what the order number is, you can use this function to get the full title just having "Order " as parameter. Then you can select that window name using its full title.

Example:

OpenOrderUsingWindowName

Back to List