Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
H3ath0r #1
Add to Structure
I'm a structures newbie. I need to know how to
1) Determine if a structure already exists
2) If not, create it. If yes, add to it.
I've got this much working (see code). I'm trying to use a structure to keep
track of people I've notified during today's session.
<cfset Notified=StructNew()>
<cfset Notified.AuthorID=#SendMail#>
<cfset Notified.AuthorName=#Form.AuthorName#>
<!--- shows on page --->
<cfif IsDefined("URL.SendMail")IS "Yes">
<p><cfoutput><font color="RED"><strong>You just sent email notification to
#Notified.AuthorName#.</strong></font></cfoutput></p>
</cfif>
H3ath0r Guest
-
Class::Struct - want to access structure within structure
I want to access a structure within a structure. Below is what I had in mind. Please help. #!/perl/bin/perl use Class::Struct; struct Step... -
Complex Structure
Hey guys, I've created a reservation app that checks multiple dates against a calendar and if the dates are available inserts them into a table.... -
W3D structure...
Hi My big problem is that I have some deformations that are already defined by vertices index, and their moves... But these deformations are... -
what is this data structure?
Hi, I don't know how to work with this data structure: my @array = ((a => 'appple'), (b => 'tree'), (c => 'chair')); when I do: -
Invoice Structure?
Hi Group Just trying to get some thoughts on the best / efficient way to handle this type of invoicing or some ways you may have handled this. ... -
Dan Bracuk #2
Re: Add to Structure
if (isDefined("notified")){
// code
}
else{
notified = structnew();
// more stuff
}
Dan Bracuk Guest
-
H3ath0r #3
Re: Add to Structure
Excellent, excellent... but what IS the code to add to a new structure. I only know how to create a new one, not to append. I've not had good luck following examples.
THANKS!
H3ath0r Guest
-
Kronin555 #4
Re: Add to Structure
"but what IS the code to add to a new structure. I only know how to create a
new one, not to append."
Assuming the existing structure is named myStructure:
<cfset myStructure.newValue = "blahblah">
I'm kinda curious though, where is this pre-existing structure? pre-existing
from what? are you storing it in the Application context? or Session context?
because if not, it only exists for one request. After that request is done, the
structure is gone.
Kronin555 Guest
-
H3ath0r #5
Re: Add to Structure
A good question... I'm going to store it as a session variable, that is once I figure out this basic code and get it working.
H3ath0r Guest



Reply With Quote

