Microsoft
Software
Hardware
Network
Question : need to Trim and cast a string as a number
I have a field with a qty and unit of measure expressed as a single string. (eg 25CS or 500SL).
The QTY could be any length, but the Unit of measure is always 2 char at the end. I need this to be a proper number so it can be used in other formaulas
How do I trim off the 2 right characters and cast as a number?
Answer : need to Trim and cast a string as a number
in crystal this would remove the last two chars
Mid ({yourfield},1 ,Length ({yourfield})-2 )
you can convert to number by
cdbl(Mid ({yourfield},1 ,Length ({yourfield})-2 )
)
Random Solutions
Missing Microsoft Calendar Control 10.0
SBS 2003 NT Backup SqlServerWriter Error 0x800423f4
Run regedit on an external drive
Report based on Multiple Check boxes
Report with two different records on same line
autoresize
System.Data.OleDb.OleDbExc<wbr />eption: Oracle client and networking components were not found.
Set up windows scheduled task run from vba
Shared a folder in Outlook 2007 now how i can see that from another machine.
VB.Net Playing a Beep