brIconv method

Performs an input conversion on the specified data.

Note: See the Remarks section for RPC and ODBC connection exceptions.

Syntax

sValue = object.brIconv( sConvertMe, sConversion)

Parameters

Parameter Description
sValue The return value is a String data type that is the converted string.
object An object variable that represents a clsD3Connection object.
sVal The String to be converted.
sConv The String specifying the processing code to be used in the conversion.

Remarks

  • Using an RPC connection, the conversion is implemented on both the client and server.

  • Using an ODBC connection, the conversion is implemented on the server.

  • This method converts a value from its external format to its internal equivalent.

Example

Private Sub InternalDate_Click()
   Dim oEnv As New clsD3Environment
   Dim oConn As clsD3Connection
   Dim sPickDate As String
 
   Set oConn = oEnv.brOpenConnection("ODBC","production")
   sPickDate = oConn.brIconv("04/07/99", "d2/")
 
   ...
 
   oEnv.brCloseConnection oConn
   Set oEnv = Nothing
End Sub

FlashBASIC reference

iconv