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> | |
var test = 'Demo'; | |
</cfscript> |
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
<cffunction name="setNamesFromFullName" access="public" returntype="void" output="false" hint="I set the name properties from the name appearing on a card"> | |
<cfargument name="name" type="string" required="true" /> | |
<cfset local.nameArray = listToArray(arguments.name, " ",true) /> | |
<cfif arrayLen(local.nameArray)> | |
<!--- set the title ---> | |
<cfset local.firstNameArrayIndex = 1 /> | |
<cfif listFindNoCase("mr,mrs,ms,miss,dr", local.nameArray[1])> | |
<cfdump var="#local.nameArray[1]#"> |
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> | |
testStr = "hello'' there' im not working''''" | |
testStr = testStr.reReplace("\'\'","~","all"); | |
writedump(testStr); | |
</cfscript> |
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> | |
test = "hello'' there' im not working''''" | |
test = test.reReplace("\'\'","~","all"); | |
writedump(test); | |
</cfscript> |
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> | |
function getIsMonthlyWaived( paymentDate ) { | |
if ( | |
findNoCase( "Legacy", "Legacy" ) | |
&& | |
( | |
!isDate( this.getPDF_Creation_Date() ) or | |
dateDiff( | |
"d", |
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> | |
detailWarnings = { | |
"holidayBillRateDeviation": { | |
"warningType": "holidayBillRateDeviation", | |
"requiresApproval": "NO", | |
"warning": true, | |
"warningTypeID": 5, | |
"requiresResolution": "NO", | |
"description": "Holiday Bill Rate different from default.", | |
"persistTillResolve": "NO" |
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
<cfset a = 4> | |
<cfset b = 25> | |
<cfif a = b OR b = b> | |
c = 10 | |
<cfelse> | |
d=15 | |
</cfif> |
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
<cftransaction> | |
<cfquery datasource="foodb"> SELECT * FROM FOO</cfquery> | |
<cftransaction action="commit"> | |
</cftransaction> |
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
<cfset variables.str="Hello"> | |
<cfoutput> | |
#variables.str# | |
</cfoutput > | |
<cfsilent> | |
<cfset variables.str="World"> | |
<cfoutput> | |
#variables.str# | |
</cfoutput> | |
</cfsilent> |
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
<cfset s = "(bingo)"> | |
<pre> | |
<cfoutput> | |
//remove first char | |
#right(s, -1)# | |
#right(s, len(s)-1)# | |
#s.right(-1)# | |
//remove last char | |
#left(s, -1)# |