LinuXelite
Programmer
Hello!
I'm a consultant and I proposed Delphi to one of my customer.
We migrate his VB program in Delphi.
I have a problem though.. He has a database called "Commence RM" and I need to include this VB code into Delphi..
Can you help me to adapt this VB script:
function vb_function()
Set cmc = CreateObject("Commence.DB"
Set mes = cmc.getcursor(0, "Message", 0)
mes.SetSort "[ViewSort(""somefilter"", ascending)]", 0
If mes.rowcount() > 0 Then
Set qrs = mes.GetQueryRowSet(mes.rowcount(), 0)
colonne = qrs.GetColumnIndex("hour", 0)
hour = qrs.GetRowValue(mes.rowcount() - 1, colonne, 0)
end if
Set mes = Nothing
Set cmc = Nothing
End Function
Thank a lot!
I'm a consultant and I proposed Delphi to one of my customer.
We migrate his VB program in Delphi.
I have a problem though.. He has a database called "Commence RM" and I need to include this VB code into Delphi..
Can you help me to adapt this VB script:
function vb_function()
Set cmc = CreateObject("Commence.DB"
Set mes = cmc.getcursor(0, "Message", 0)
mes.SetSort "[ViewSort(""somefilter"", ascending)]", 0
If mes.rowcount() > 0 Then
Set qrs = mes.GetQueryRowSet(mes.rowcount(), 0)
colonne = qrs.GetColumnIndex("hour", 0)
hour = qrs.GetRowValue(mes.rowcount() - 1, colonne, 0)
end if
Set mes = Nothing
Set cmc = Nothing
End Function
Thank a lot!