Casting // Type conversion
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
16-09-16 07:12 PM
Hi All,
Is there any way to cast/convert data types in BP Expression Editor?
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
16-09-16 09:11 PM
There are a number of conversion functions like ToNumber for use within an expression. If you want to cast the output of an expression, just use a data item with the type you want in the Store In field. Be aware though that casting is not magic - there are limitations to what can be converted, and an exception will be raised is the cast is illegal.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-09-16 05:27 PM
Thank You @John Carter,
I'll experiment with those 🙂
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-11-17 07:09 PM
Hi All,
I imported excel to local undefined collection. Excel has fields Date and Quantity. when i imported them the datatype is text for every column.
How to change datatype back to date ,quantity for whole column where my excel has 1000 rows.
Thank you in advance
