Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

numbers and strings 1

Status
Not open for further replies.

stevenfilip

Programmer
Feb 5, 2003
5
NL
Hi All,

For example if I have an integer number of : 107
but i would like to put it in the database as : 0107

And if I have a string : AAB
But I would like to put it in the database as : 0AAB

How would I do something like that?

Thanks!

Steven
(newbie)
 
Well the number would be handled like this...

<CFSET myNumber=#NumberFormat(myNumField,&quot;0000&quot;)> ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top