EasyCFM.COM ColdFusion Forums / ASP to CFML / Convert Public Function

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Convert Public Function

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

Daem0nX
04-03-2005 @ 7:41 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 2
Joined: Apr 2005

Is there any way to convert the following ASP Public Function into a CF function? I've read on CFFunction and CFScript but I'm at a lose. Any help is greatly appreciated. I posted on another forum then remembered easycfm had one and was amazed it actually has a conversion forum. If I get a reply on the other forum I'll be sure to post here Smile

Public Function Formv(FieldName)

If Request.Form <> "" Then
Formv = Request.Form(FieldName)
ElseIf IsObject(RS_Site) Then
Formv = RS_Site(FieldName).Value
Else
Formv = ""
End If

End Function

Ramyik
05-30-2005 @ 5:57 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 1
Joined: May 2005

what is the purpose of this function? i noticed that it takes a form field as an argument, but you need to explain more, especially:
1) the arguments that the function takes
2) the purpose of the function, and
3) the expected output/result

Lola
05-30-2005 @ 1:35 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 363
Joined: Feb 2005

Show us the entire asp code.


Website Designed and Developed by Pablo Varando.