Ask a Question related to Macromedia ColdFusion, Design and Development.
-
lad4bear #1
Convert QueryString to Struct
Hi guys,
I need to convert a QueryString to a Struct. What's the fastest way to do
this. I know URL is really a structure underneath but I don't have access to
it. (My QueryString is being returned by a cfhttp call).
Cheers, Pete (aka lad4bear)
lad4bear Guest
-
array and struct
why went we push an array it get change to struct ? and why cannot loop on struct variable when the struct variable are number e.g main.1.input... -
Issues with declaring struct arrays inside of a struct
I have the following C++ code: define MAXXPAXX 64 // Pack sub component of database struct. typedef PREFIX_PACKED struct { DWORD packid;... -
Calling fun taking struct and not pointer to struct?
Robert Feldt wrote: I'm a little confused by the question... are you asking if: 1) The act of using a struct in the declaration of another... -
Fwd: Calling fun taking struct and not pointer to struct?
Related to the recent thread about nested structs and Ruby/DL here is the answer from Ruby/DL's author: So that's what I ask you: Is inlining... -
struct in asp
how can i have in asp the equivalent (in C++) of this: struct s_my_table { string name, string sexe, int age, } -
CF_DAWG #2
Re: Convert QueryString to Struct
Try this:
<cfscript>
myStruct = structNew();
for(i=1; i LTE listLen(cgi.QUERY_STRING,'&');i=i+1) {
structInsert(myStruct, i, listGetAt(cgi.QUERY_STRING,i,'&'));
}
</cfscript>
<cfdump var="#myStruct#">
You can do it without using cfscript, but i prefer to use it when using
structures or arrays.
Hope this helps!
CF_DAWG Guest
-



Reply With Quote

