---
url: >-
  /statelake/scripting-reference/classes/db-connection-class-tflodbcon/dbcon.username.md
---

# DBCon.Username

Returns the username configured on the **DB Connection**.

**Declaration**: property Username : String;

Illustrated by the following example.

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Source.DBCons[0].DBCon.Username;
end;
```
