Created
July 5, 2019 10:03
-
-
Save trycf/bd1c54f48d5bb81723baced887a0f872 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
dump(server.lucee.version); | |
Quantity=777; | |
</cfscript> | |
<cffunction name="trimDecimal"> | |
<cfargument name="value"> | |
<cfif Find('.',value)> | |
<cfreturn REReplace(REReplace(value, "0+$", "", "ALL"), "\.+$", "")> | |
<cfelse> | |
<cfreturn value> | |
</cfif> | |
</cffunction> | |
Display Code | |
<table> | |
<tr> | |
<td align="center"> | |
<cfoutput> | |
<input name="Qty001" type="text" class="pix13" value="#trimDecimal(Quantity)#" size="8"maxlength=“8” onfocus=“specialfocusBG(this)” onblur=“specialblurBG(this)” onChange="GoodsOutForm.submit();" ></td> | |
</cfoutput> | |
</tr> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment