ChangeProfile

Change current profile to profile with name ProfileName

Keep in mind then following:

If the profile is successful, the function returns 0, otherwise returns an error code:

Pascal

function ChangeProfile(ProfileName : String) : Integer

Python

ChangeProfile(ProfileName)

Example

Disconnect;
ChangeProfile('Test1')
Connect;