SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cfcomponent cffunction

    Hi to all,

    i have a cfform input in which i use bind.

    in bind there is a function which is written in a cfcomponent.

    if i use a variable in that cfcomponent will it re-initialiaze itself in every bind?

    ex: <cfcomponent >
    <cfset variables.tk='00000'>

    <cffunction>
    <cfset variables.tk='00012'>
    </cffunction>
    <cfcomponent >

    every time it will bind, the value of the tk variable will be initialized?

  2. #2
    SitePoint Enthusiast Paul_K's Avatar
    Join Date
    Jul 2008
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Zero_Sequence View Post
    Hi to all,

    i have a cfform input in which i use bind.

    in bind there is a function which is written in a cfcomponent.

    if i use a variable in that cfcomponent will it re-initialiaze itself in every bind?

    ex: <cfcomponent >
    <cfset variables.tk='00000'>

    <cffunction>
    <cfset variables.tk='00012'>
    </cffunction>
    <cfcomponent >

    every time it will bind, the value of the tk variable will be initialized?

    No as long as the object is in scope varibles.tk well stay as the value you set it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •