Studio Lighting Net
vb.net visual studios 2005. dealing with substring null issue?

consider… input1.Substring(0,5)
What I want to do is return a true or false boolean value if its null or not null….
If I input a string to input1 and the string is .. 4 or less characters….
this gives an unhandled exception… out of range blah blah…

But I want instead of it to crash… is to give me a true or false return.. like if input1.Substring(0,5) exists… not nulll..
or doesnt exist is null…

I know can use an if/then or a select case to just not pass
input1 to input1.Substring(0, 5) if input1.length < 5

But I was hoping there was another way.... What I was trying was...

If String.IsNullOrEmpty(input1.Substring(0, 5)) = True Then
Do this
Else
Do that
End If

the tooltip says it returns a boolean value if its null or not.
but it doesn't seem to be working exactly like how I took what it says.
and it just crashes for me when it gets to that evaluation.

I would appreciate any light shed on this subject. thank you.

This is the easiest way I can think to do this:

If input1 Is Nothing OrElse input1.Substring(0, Math.Min(5, input1.Length)).Trim = “” Then
return true
End If

This will return true if input1 is null or if the first 5 characters (assuming it has that many) are spaces. It first has to check if input1 is nothing since it can’t evaluate substring if it is. Then it does an OrElse so it input1 is nothing the second part doesn’t get evaluated. Finally it takes either the first 5 characters, or the entire string if it’s less the 5 characters, trims off white space and checks if it’s empty.

Studio Lighting & Portrait Posing Tips: The Romantic Engagement Session


Westcott 301 Photo Basics 40-Inch 5-in-1 Reflector


Westcott 301 Photo Basics 40-Inch 5-in-1 Reflector


$39.90


The Photo Basics 5-in-1 Collapsible Reflector Kit is versatile in the field and in the studio, providing shadow-lightening detail in your subject, using available, or studio lighting. It contains a translucent white disc, which is perfect for softening direct sunlight, or lights without diffusion. Use the removable, reversible zippered slipcover to reflect light into shadow areas of your subject. …

Westcott 750 Photo Basics 7.0-Foot Light Stand


Westcott 750 Photo Basics 7.0-Foot Light Stand


$29.90


This Photo Basics Light Stand is lightweight, black aluminum, with sure-twist section locks. It is an ideal stand for a travel kit with small light fixtures….

PRO HEAVY DUTY 7.7 feet LIGHT STANDS PHOTO STUDIO VIDEO


PRO HEAVY DUTY 7.7 feet LIGHT STANDS PHOTO STUDIO VIDEO


$14.90


The light stand is made of aluminum alloy, making it strong for heavy duty work. It is also of light weight and can be folded into a small size, making it portable and easy to store after use. Its solid locking capabilities makes your lights safe. Made by the industrial standard, it supports all major brands of photo equipment such as reflector, softbox, different lights, umbrella, background, etc…

Sony Vegas Movie Studio HD Platinum 11 Production Suite


Sony Vegas Movie Studio HD Platinum 11 Production Suite


$50.00


Video editing audio mastering & disc authoringVegas Movie Studio HD Platinum 11 Production Suite takes HD video and audio production to the next level with tools for professional-level sound design and more video effects and transitions. Edit video in nearly any format including high-definition HDV and AVCHD and create a 3D project using the innovative stereoscopic 3D tools. Use the included Sound…

Myth: The Total Codex


Myth: The Total Codex


$19.99


Bungie Software shattered real-time strategy norms with its 1997 release, Myth: The Fallen Lords. Eschewing the tried-and-true formula pioneered by such classics as Command & Conquer and WarCraft, Myth broke through the shackles of resource management and unit creation and put strategy and combat at the forefront. In fact, perhaps Myth erected its own genre–the real-time tactical game. Myth: The…



Here Are Some Other Continuous Lighting Related Sites For You to Browse

BBC Monograph no 14
Thomas Edison: Biography from Answers.com
Infosys Technologies Computing Infosys Technologies Ltd. is a ...
Patio Umbrella Lights by RandomActs
Home & Garden: House Calls - Local designers redesign readers ...
Flickr: Discussing Continuous Lighting in Studio Lighting On A ...
Studio Lighting Equipment
blue sky studios jobs - CNNMoney.com
cinematography: Definition from Answers.com
Seeking South Beach Serenity - WSJ.com