Hi , Can anyone help me ? when I try to get a date from a form(form=142,item=10),I got a string such as '20051108',how can i get a date type use UIApi ,
this is my code
Private Function GetselfValue(sForm As String, sItem As String) As String
Set oForm = SBO_Application.Forms.GetFormByTypeAndCount(sForm, 1)
Set oItem = oForm.Items.Item(sItem)
Set oEditText = oItem.Specific
If oEditText.Value = "" Then
GetselfValue = "0"
Else
GetselfValue = oEditText.Value
End If
End Function
if i split the string such as '20051108' to get a date type ,it seems that's not the right way to get a date.
there are the same question to get a currency tpye ,I got '1000RMB' instead of '1000', is there any other way to get the right data type?