Link to home
Start Free TrialLog in
Avatar of Albee_J
Albee_J

asked on

ColdFusion Subroutine question

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!
Avatar of gdemaria
gdemaria
Flag of United States of America image

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>
  </cffunction>


what do you want yours to do?

Avatar of Albee_J
Albee_J

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of gdemaria
gdemaria
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.

http://www.adobe.com/products/coldfusion/features/netintegration/
Avatar of Albee_J

ASKER

Thank you gdemaria and SBennett for your information!

Johanna