Clone Method (Language)
- Last UpdatedNov 06, 2025
- 2 minute read
The Clone() method adds a new language to the Language table by copying all of the strings of an existing language.
'Declaration
Public Shared Sub Clone( _
ByVal sessionId As Integer, _
ByVal newLangId As Integer, _
ByVal clonedLangId As Integer, _
ByVal newLangDesc As String _
)
public static void Clone(
int sessionId,
int newLangId,
int clonedLangId,
string newLangDesc
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- newLangId
- Required. Holds the ID for the new language that is being added. The next available language ID in the Language table can be retrieved before making this method call using the NextFreeLangID() method.
- clonedLangId
Required. Holds the ID of the source language on which to base the new language that is being added. The source language must exist in the Language table for the method to succeed.
- newLangDesc
- Required. Holds the description of the new language. The language description is saved as string 1 for each new language.
This method copies all of the data for each language string record in the Language table for the existing language ID, except the lang_id column, and inserts new records into the Language table using the copied data and the new language ID. The string column for first language string (string_id = 1) of the new language is set to the value of the newLangDesc parameter.