Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


ColdFusion Subroutine question

Posted on 2007-08-06
Medium Priority
Last Modified: 2008-01-09
I am trying to get some information in regards to CFML and subroutines.  Does ColdFusion have anything equivalent to a subroutine in VB?  Would that be the CFC?

Thank you!
Question by:Albee_J
  • 2
  • 2
LVL 39

Expert Comment

ID: 19638984
codlfusion has functions, you can place them at the top of the page or you can enclose them in a CFC.

Here's quick useless little one as an example...

  <cffunction name="contatinate" access="public" output="false" returnType="string" displayname="">
       <cfargument name="firstName"    required="true"/>
       <cfargument name="lastname"     required="false"/>

       <cfreturn arguments.firstName & " " & arguments.lastName>

what do you want yours to do?


Author Comment

ID: 19639127
Essentially we are comparing CFML to the .net platform to decide whether or not ColdFusion will the best programming language to support us. We are using CF for our websites.  More and More complicated forms are being asked of us to create, and a lot of the requests we are getting is now pointing us towards web based applications. We are just trying to determine if our current language will support us, or if we need to change to the .Net platform.
LVL 39

Accepted Solution

gdemaria earned 2000 total points
ID: 19639213
ah, I see.

When coldfusion can do any of the usually stuff as far as delivering web content and forms to your page.   The advantage of coldfusion is that it can do it with fewer lines of code and in a much shorter development time.   Its much easier to learn than .Net as well, if your staff is green on either language.

Another advantage of coldfusion are the add-ins such as built-in PDF creation, the new "presentation" module which converts pages to flash,  easy creation and parsing of XML files, etc.

Good luck with your decision.
LVL 14

Expert Comment

by:Scott Bennett
ID: 19639575
I would suggest coldfusion as it will be much easier for your developers to learn, and your development times will be shorter. There is nothing you can do with .Net that you can't do with coldfusion. in fact the new version of coldfusion (8) includes .NET support.


Author Comment

ID: 19640423
Thank you gdemaria and SBennett for your information!


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question