Applies To:
  • CitectSCADA 5.21 Service Pack B

WinCopy and WinFile functions should be able to be called simply with WinCopy(), and WinFile(sFile). Since V5.21 Service Pack B this does not work so they must be called with additional parameters. 

This problem has been fixed. However now WinCopy and WinFile functions cannot be called in the citect Kernel since they are macros. See KB article Q2139. If these functions are called in the kernel, an Unknown function message will be produced. It is possible however to call _WinCopy and _WinFile, although these will require extra parameters, see below.

The functions WinCopy and WinFile appear as:

WinCopy(Xscale, Yscale, sPalette) and WinFile(sFile, Xscale, Yscale, sPalette)

In Service Pack B WinCopy and WinFile would work as long as the Xscale and Yscale parameters were used (and were not zero).

eg: WinFile("Somefile",1,1)

CIT has confirmed this to be a problem in Citect for Windows versions 5.21 service pack B and C. This problem has been fixed in version 5.21 service pack D.