Robert-
Can you try this component on your server and let me know your results?
<cfcomponent>
<cffunction name="testFunction" access="public">
<CFSCRIPT>
recordset = queryNew("serverinfo");
queryAddRow(recordset,1);
querySetCell(recordset,"serverinfo","01, 192.168.1.25",1);
test_server = recordset.serverinfo;
test_server = Trim(ListGetAt(test_server,2,","));
</CFSCRIPT>
<cfreturn test_server>
</cffunction>
</cfcomponent>
Collin Tobin
CFMX QA Engineer
Macromedia�
What the web can be.(tm)
Announcing Macromedia DevNet Subscriptions
Maximize your power with our new premium software subscription for Macromedia
developers
Find out more: <http://www.macromedia.com/go/devnetsubs/>
-----Original Message-----
From: Robert Bailey [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 9:59 AM
To: CF-Talk
Subject: RE: Anyone have this problem with CFMX?
I can use it in my CFM pages, trying to make it reproducible, but it is
working in other CFC's, so I am not quite sure what the problem is. Without
giving all my code, let me give you the gist:
A query is made to the database, picking out the mail server. The query is
called results, has a table called data that holds the server that I need to
ping
Now this data is in the format (don't ask me why they did it this way, I
just need to work around it, ugh) "01, 192.168.1.25" or whatever, you get
the point
So now I do the following:
<CFSCRIPT>
server = ListGetAt(results.data, "2", ",");
</CFSCRIPT>
<CFRETURN trim(server) />
Empty string.
So I tried it this way:
<CFSCRIPT>
server = ListGetAt(results.data, "2", ", ");
</CFSCRIPT>
<CFRETURN server />
This hack does not work
And I tried this way:
<CFSCRIPT>
server = trim(ListGetAt(results.data, "2", ","));
</CFSCRIPT>
<CFRETURN server />
Pretty much I have tried many different ways, all return an empty string
through out the whole application. no idea what is happening, ugh.
I also tried writing a UDF, didn't work, I am pretty much about to give up.
Another application that I need to write in ASP and drop MX? This is the 2nd
time this month I have had to abort MX because of it's problems and move to
ASP to get what I need done. If this keeps up, not sure how much longer I
will be staying with CF. Getting a little tired of getting more then halfway
through a project and having to stop because of it's problems and moving to
ASP.
Thanks!
Robert Bailey
Famous for nothing
-----Original Message-----
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 7:07 AM
To: CF-Talk
Subject: Anyone have this problem with CFMX?
Robert-
I've used trim() successfully with U2 and U3 running your same config. Want
to send me your particular reproducible scenario and I'll try it out?
Thanks.
Collin Tobin
CFMX QA Engineer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4