getEmployeeFilekeyByBadge() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Related Methods

Function

  • Returns an employee’s unique interval filekey given a distinct badge number

Syntax

  • Integer = AeXMLBridge.getEmployeeFilekeyByBadge(BadgeNum);

Parameters

  • Integer - employee badge number

Return Value

  • Returns an integer containing the employee’s filekey

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
int badge = 1234;  
// using employee with badge "1234"

try
{
int filekey = ws.getEmployeeFilekeyByBadge(badge);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
Dim badge As Integer = 1234
' using employee with badge "1234"

Try
Dim filekey As Integer = ws.getEmployeeFilekeyByBadge(badge)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • None

Possible Errors

  • Will return a -1 value if badge number is not found
  • None

Back to Top