Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / June 2008



Tip: Looking for answers? Try searching our database.

Default delimiter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vetal SPb - 24 Jun 2008 04:16 GMT
Can I change the default delimiter for array and list functions in configuration file? I don't want to use the delimiter as parameter in function.
Eivind - 25 Jun 2008 07:40 GMT
Vetal SPb skreiv:
> Can I change the default delimiter for array and list functions in configuration file? I don't want to use the delimiter as parameter in function.

No. Not directly. But you can make your own functions that do the same
thing as existing functions, but with different default delimiters, for
example:

<cfscript>
function myListGetAt(list,pos){
    return ListGetAt(list,pos,';');
}
</cfscript>

You can also often sensibly store stuff in objects, and have the
accessor-methods deal with details like list-delimiters. It depends on
the spesifics of your problem.

    Eivind Kjørstad
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.