|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
BF on CF Ask The Training Staff
Ask The Training Staff
By: Bruce Van Horn
Aug. 8, 2001 12:00 AM
I hope that all of you are enjoying your summer and getting in plenty of R&R. If you aren't, I hope you have at least upgraded to the new CF Server 5.0. Not that this is better than a week at the beach, but it should certainly bring a little joy into your life because of some of the new features! Anyway, upgrade if you haven't already, start playing with the new features, and keep those questions coming. Here are some I've answered recently.
Q: How can I use CF to dynamically generate (out- put) special ASCII characters, such as the tab or line break characters?
<cfoutput>Q: You said in your class to avoid using a text file as a data source, but I have a situation where I need to do that. How do I use a text file as a data source in CF? A: Even though it's a bad situation, it's a good question. The first thing you need to understand is how to create the data source. When creating the data source in the CF Administrator, avoid the temptation to point it to the actual file. Create your data source so it's pointing only to the subdirectory that the file is in. If you point it to the actual file, the connection will fail. Once the data source is created in CF, you can query the file using the CFQUERY tag as you would for any other database. The biggest difference is in the FROM clause in your SQL. Here's where you'll use the name of the file. For example: <CFQUERY NAME="MyQuery" DATASOURCE="TextTest">Q: In CF Studio, when I go to click on one of the resource tabs (like the database tab), it frequently unlocks the tab from the rest of the resource area, which is really annoying. Is there a way to stop this? A: I know exactly what you mean and I agree that it's very annoying! If you're using Studio 4.5.2 there's a way to stop this "feature." Go to the Options menu and choose Settings. In the lower-right corner of the main screen there's an option called "Lock Tabs". If you check this box, your resource tabs will stay where they are and your life will be less stressful!
Q: I've upgraded to CF Server 5.0 and am trying to view the examples for the new CFGRAPH tag, but nothing ever shows up. What am I doing wrong?
Q: What's the best way to clear out a cached query?
<cfset tmp = StructDelete-(Application,"MyQuery")>Please send your questions about ColdFusion (CFML, CF Server, or CF Studio) to AskCFDJ@sys-con.com. Please visit our archive site at www. NetsiteDynamics.com/AskCFDJ. Reader Feedback: Page 1 of 1
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week
Breaking Cloud Computing News
|
|||||||||||||||||||||||||||||||||||||||||||||||||