Message 1 of 7
iProperty error "conversion from string "" to type "Double" is not valid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
HI Boffins
I am trying to copy the value (string) from an existing custom iProperty across to a new custom property but am stumbling over string to double conversion.
It appears that a few of the existing parts have the old property set to type "number" and i am needing to copy it into a new property of type text. I have tried using the CStr function but it seems to have no effect. Code is below
SyntaxEditor Code Snippet
If GetProperty(oCstPropSet, "SYBIZ PART No.").Value <> "" Then Dim VIZNO As String = CStr(GetProperty(oCstPropSet, "SYBIZ PART No.").Value) GetProperty(oCstPropSet, "SYBIZ PART NO").Value = VIZNO oCstPropSet.Item("SYBIZ PART No.").Delete Else If GetProperty(oCstPropSet, "SYBIZ PART No.").Value = "" Then oCstPropSet.Item("SYBIZ PART No.").Delete End If
Any ideas / help appreciated as I'm sure this is really simple but .........
Thanks
Bryan