Tornado API Library - V12.30.08

z.dbCSVDelimiter Property

User defined delimiter for the csv file.

Product Version

All
[VisualBasic]
PublicPropertydbCSVDelimiterAsString
[C#]
publicstringdbCSVDelimiter{set;}

Property Value

Obj.dbCsvDelimiter = delimiter_string

KeywordDescription
delimiter_stringAny delimiter string

QuickProp Keyword Abbreviation

cde

Remarks

In some countries, the default CSV delimiter is ";" instead of ",". So, get to know the locale of your application. If you set the dbCulture property then dbCsvDelimiter will be set for that culture unless override by user.

Example

What is my the default delimiter string in my localtion? Run the following code and find out.

<%@ Import NameSpace="System.Globalization" %>
<%@ Import NameSpace="System.Threading" %>
<script language="VB" runat="server">
  Sub Page_Load(Src As Object, E As EventArgs)
    Dim Cul As String = Thread.CurrentThread.CurrentCulture.Name
    Dim C As New CultureInfo(Cul)
    Response.Write("My CsvDelimiter = " & C.TextInfo.ListSeparator)
  End Sub
</script>   
 Obj.dbCsvDelimiter = chr(9)

See Also

z Class | Tornado Namespace | dbCSVName