CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 meaning

Print topic Send  topic

Author Message
pankajpatil

Posts: 1
Posted: 01/29/2005, 6:46 AM

can any tell me meaning of this line

file.substring(file.indexOf("filename=\"") + 10)
View profile  Send private message
mrachow


Posts: 509
Posted: 01/29/2005, 1:00 PM

indexOf will return the starting position of the string
filename="
substring with one parameter only will deliver the rest of the string starting at the specified position (this one parameter).

BTW I see a possibly problem here.
It looks like the starting apostrophe of the filename is passed here. But retrieving the substring in the above way will keep the apostrophe at the end with of filename.
_________________
Best regards,
Michael
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.