DeclareRevision()
Initializes the Universal Library with the revision number of the library used to write the program. This method must be the first Universal Library method to be called by the program.
Member of the MccService class.
Function Prototype
VB .NET
Public Shared Function DeclareRevision(ByRef revNum As Single) As MccDaq.ErrorInfo
C# .NET
public static MccDaq.ErrorInfo DeclareRevision(ref float revNum)
Parameters
revNum
Revision number of the Universal Library used to interpret method parameters.
default
Any program using the 32-bit library and not containing this line of code will be defaulted to revision 5.4 parameter assignments.
Returns
Notes
- By default, any program using the 32-bit library and not containing this line of code will be defaulted to revision 5.4 parameter assignments.
- As new revisions of the library are released, bugs from previous revisions are fixed and occasionally new properties and methods are added. It is our goal to preserve existing programs you have written, and never change the order or number of parameters in a method.
- With the DeclareRevision() method, programs do not have to be rewritten in each line where new functions are used, and the program then recompiled. The revision control method initializes the DLL so that the functions are interpreted according to the format of the revision that you wrote and compiled your program in. The method works by interpreting the UL function call from your program and filling in any arguments needed to run with the new revision.
- If your program has declared you are running code written for an earlier revision and you call a new method, you must rewrite your program to include the new parameter, and declare the current revision in the DeclareRevision() method call.