|
jkirkerx wrote: Case Sensitive?
That depends on where you're executing the query, and is one of the more annoying quirks of LINQ.
If you're querying an in-memory list, string comparisons are case-sensitive by default. You can either "normalize" the strings using ToUpper / ToLower (you should prefer upper-case[^], due to the "Turkish I" problem[^]), or you could use IndexOf and pass a case-insensitive StringComparison . (Annoyingly, there isn't an overload of Contains which takes a StringComparison option.)
Passing a StringComparison option is preferable to changing the case, because it doesn't involve creating a new copy of the string.
If you're using a database, your query will use the collation[^] for the column you're querying. Most databases use a case-insensitive collation by default, so your query will be case-insensitive.
If you try to pass a StringComparison when you're querying a database, you'll get an exception telling you that the method can't be converted to a database query.
Not that this is a leaky abstraction or anything!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Oh that explains why I'm having so much trouble with my string comparisons.
I'll change i to Upper for now and look into String Comparision today.
Thanks Richard!
If it ain't broke don't fix it
|
|
|
|
|
Hi,
i was looking for a snippet to control the line in volume of my machine, but i found nothing usefull!
Could you guys gimme some help?
I am trying to create a simple sound recording software..just to keep busy..
TIA,
Duarte
modified 7-Jan-19 21:02pm.
|
|
|
|
|
|
yes ..i also searched the site but most of examples are C# not Visual Basic..and i do not find anything related to line in also!!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
The example I gave the link to has the Line In volume shown in one of it's pictures so it does contain something to do with Line In.
You can quite easily convert C# to VB, lots of online sites will do it for you, plus you can use the C# modules that do the background work with the audio and use VB to do the UI if you wanted to.
|
|
|
|
|
Alienoiz wrote: but most of examples are C# not Visual Basic Which will always be true so I suggest you learn C#. It's very similar to VB anyway and since most people are using C# over VB, just switch.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I'm not sure what you are searching ...
But ... have you realized that the .Net-Framework has the HScrollBar-Control (or the VScrollBar) which could be used for that.
If this answer doesn't match to your requirement then please provide more information ...
|
|
|
|
|
well..i just want a slider or 2 buttons (+/-) to control the volume of the line in...
the problem is that i find no code for that and i wish to see some snippets so i can understand!!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
|
no problem for the slider..i need the code to control the line in volume..thats what i need!!
i have searched but only returns code to control the main volume, not line in...
i find no snippet for the line in volume control!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
There is no volume on line in, it's just an audio signal.
|
|
|
|
|
well..with windows mixer we can control the amount of volume the audio signal is recorded!
Cant we do that with visual basic?
modified 7-Jan-19 21:02pm.
|
|
|
|
|
Alienoiz wrote: Cant we do that with visual basic? No idea, what does the documentation say?
|
|
|
|
|
documentation says: "thanks...have a nice day"
modified 7-Jan-19 21:02pm.
|
|
|
|
|
There is no simple "line in" volume; you may have one or more audio-cards in your computer, and such a card may or may not have a line in.
You may be interested in this[^] article.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
i already saw this article...but i cannot recreate it on Visual Basic...
I would like to have the "line in " slider represented there in the "Recordings" section..
but i do not know where to start from..i have seen the code to record .wav from the line in input of my PC..it is recording fine enough for me... i just wish to have a way to adjust the recording volume!!!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
I'd recommend by starting to read the article and to look for an online translater that converts C# to VB.NET code.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
ok ..i will try that! Thanks!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
It was supposed to be a picture in my last post!!! i can not see it :S
modified 7-Jan-19 21:02pm.
|
|
|
|
|
The forum does not support images, so that is correct.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
i have used it as a link.. a link to the image!!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
I don't see any link either; you can still edit the post if desired though.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
hi again.. so i have all this built up and functional
I am now thinking on making a fine GUI to it... and i believe i just miss the Line In volume controller here!!
Despite of only being able to record in 16-bits / 2 chans and 44.1Khz/48Khz .. i am enjoying to do this....
... it is working fine .. i do not have a audiocard selector wich would be good but it is recording well through my realtek line in : ) .. maybe i do some more research and add a way to toggle between line in and mic : )
For now i realy just would like to have the Line In volume controller : )
Regards,
Duarte
modified 7-Jan-19 21:02pm.
|
|
|
|
|
I suspect that limiting the line in (other than via the "master volume" of the line in device) would also degrade the signal to some extent from the "pure" one coming out of the line out of the sender.
Like playing the "headphone output" from an mp3 player that does not have a line out through your car's audio device.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|