CallSubDelayed, CallSubDelayed2 and CallSubDelayed3 not return a value as they do CallSub, CallSub2 and CallSub3. This is a bug or just not possible to return values from other modules
Dim varClass as MyClass
varClass.Initialize("This is a name", "String", 1)
Public Sub CompareParam2vsParam3(objDataType As Object) As String
Dim strObjName As String
strObjName = GetType(objDataType)
strObjName = strObjName.Replace("java.lang.", "")
Return strObjName
End Sub
Public Sub Initialize(Name As String, DataType As String, DefaultValue As Object)
Dim strDataTypeDefaultValue As String
strDataTypeDefaultValue = MyModule.CompareParam2vsParam3(ObjDataType)
If DefaultValue = Null OR DataType <> strDataTypeDefaultValue Then
'ERROR TypeMismatch
' The data type and default value does not match.
Else
strDataType = DataType
End If
End Sub
Hi Sergio,
looking at your code snippet I see that the errant line reads:
strDataTypeDefaultValue = MyModule.CompareParam2vsParam3(ObjDataType)
but parameter ObjDataType is never cited before; should it be DefaultValue instead?
Umberto
What is the purpose of this code?
I don't recommend you to use the MySQL library. You should either use RDC or the PHP based solution.I find that there are several ways to read data but not all return the same result , in my case , SQL and MySQL libraries. SQL is handled with a variable of type Cursor , on the other hand , MySQL a type List variable.
Dim dsDataSet as DataSet'< This would be the database , which contains the tables
dsDataSet.Initialize
Dim dtTable As DataTable
dtTable.Initialize
dtTable.TableName = "MyTable"
Dim dtColumn as Column
dtColumn.Initialize
dtColumn.ColumnName = "Column1"
dtColumn.DataType = "String"
dtTable.AddColumn(dtColumn)
dtTable.AddRow("Bla bla bla")
'TODO
dtTable.LoadXML(file)
dtTable.LoadText(file, delimiter, bln1stlinecols)
dtTable.LoadOTHER(params)
dsDataSet.Add (dtTable)