Print Page | Close Window

Capitalization ?!?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=11191
Printed Date: 31 March 2026 at 9:33pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Capitalization ?!?
Posted By: neotrix
Subject: Capitalization ?!?
Date Posted: 14 July 2004 at 3:42pm

Hello, I built a small Music Search engin for my website, it reads the name of the songs and the name of the file to  be played from a text file, like suppose

[Quote:Database.txt]
SongName.song21.BandName.Artist
Some Other Song Name.song82.Some other band.artist
[/quote]

now i divide each line into different parts, like suppose line 2, i will divide it in such a way, that everything before the first dot is the name of the song, then is the name of the file, then the band and at last the artist...

First problem is, that if someone enters 'dIL sE rAy' and the actual song name is 'Dil Sae Ray' so it Returns that no song of such name was found.

Either i want to make the HTML field in such a way that no matter what the user enters, it automatically Capitalizes it and then sends the Capitalized text to the ASP file to process it, or, the ASP File may read it in such a way that it may Convert 'sOme sOnG naMe' to 'Some Song Name' and then compare it, is it possible ?!?

Secondly, when i compare, i compare it in such a way, like

if Split(strCurrentTextLine,".")(0) = Request.QueryString("SongToSearch") then

.... bla bla bla, meanz the sond was found....

else..

bla bla bla, meanz the song wasent found

but this only compares if the text enter maches the name 'Exactly' as it appears in the file, is this possible that i compare it like suppose the song name is 'They Dont Really Care About Us' and someone enters 'Care About Us' so it still gives the result ?!? how can i compare that ?!?

I noe its preety long Question, but i'm stuck



-------------
http://www.muhammadbinyusrat.com/blog/" rel="nofollow - Say to the believing men..



Replies:
Posted By: Mart
Date Posted: 14 July 2004 at 4:20pm

Why not use a database or XML file, it will be a lot easier.

Anyway try this

If Split(LCase(strCurrentTextLine), ".")(0) = LCase(Request.QueryString("SongToSearch") Then

...

End If



Posted By: neotrix
Date Posted: 15 July 2004 at 12:16am

Yeah! Great, that worked, actually, i some how capitalized it, and the problem regarding Database is that i donot have MS Acces in my computer

any wayz thanxx, i somehow worked it out... :)



-------------
http://www.muhammadbinyusrat.com/blog/" rel="nofollow - Say to the believing men..


Posted By: zMaestro
Date Posted: 15 July 2004 at 3:20pm

it happened once with me that database was read from the local server without installing any Office program. Is this normal?

ie: .mdb access database was working and results came without any problem although no Access is installed.



Posted By: Mart
Date Posted: 15 July 2004 at 3:24pm

That is normal, this is because your server probably had MDAC (Mcirosoft Data Access Components) installed. Access is only needed to edit data, create tables etc.

(Actually it is not needed, you could make your own program to replace MS Access)



Posted By: neotrix
Date Posted: 15 July 2004 at 5:05pm
Originally posted by zMaestro zMaestro wrote:

it happened once with me that database was read from the local server without installing any Office program. Is this normal?

ie: .mdb access database was working and results came without any problem although no Access is installed.

I am saying, that when i dont have MS Access installed, how will i make that .mdb file to read or write ?!?



-------------
http://www.muhammadbinyusrat.com/blog/" rel="nofollow - Say to the believing men..


Posted By: Mart
Date Posted: 15 July 2004 at 5:11pm
You can use MS Access in your applications as long as the server has MDAC installed (near enough every server will). The MS Access application is not used to connect to the database and select data etc. - thats what MDAC is for. I.e. Access will still work in the same way even if you don't have the MS Access Application that comes with office installed - hope thats clear.


Posted By: michael
Date Posted: 15 July 2004 at 5:35pm
Maybe to clarify for you. Access is NOT a database it is a Database Management System. The Database itself (you may say) is JET.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net