brOconv method

Performs an output conversion on the specified data.

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

Syntax

sValue = object.brOconv( sVal, sConv)

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 A String to be converted.
sConv The String specifying the processing code to be used in the conversion.

Remarks

  • Using an RPC connection, some conversion codes are implemented on the client and some on the server.

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

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

Example

Sub Main()
   Dim oEnv As New clsD3Environment
   Dim oConn As clsD3Connection
   Dim lPickDate As Long
   Dim sDate As String
 
   Set oConn = oEnv.brOpenConnection("ODBC", "production")
 
   lPickDate = oConn.brDate
   sDate = oConn.brOconv(CStr(lPickDate), "d2/")
   MsgBox "Today's date is " & sDate
 
   oEnv.brCloseConnection oConn
   Set oEnv = Nothing
End Sub

FlashBASIC reference

oconv