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….

Westcott Photo Basics 304 5-in-1 Reflector Kit


Westcott Photo Basics 304 5-in-1 Reflector Kit


$88.95


Westcott’s 40″ 5-in-1 Reflector Kit is the fastest, most affordable way to achieve diffused or reflective light. Each kit contains a diffusion panel as well as a reversible slip cover with four sides: silver, gold, white and black. Each kit contains a diffusion panel, as well as a slipcover that is silver/gold/white and black. Use it outdoors or add to an existing studio set up for even more ve…

Sony Vegas Movie Studio HD Platinum 11 Production Suite


Sony Vegas Movie Studio HD Platinum 11 Production Suite


$54.95


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

Studio lighting--continuous and flash together? - Yahoo! Answers
Shallow DOF portraits tutorial using continuous lighting - YouTube
Section 100 Lighting Related Definitions
Take Your Own School Pictures
Creating a New Look for Modern Istanbul - WSJ.com
Twitter / camerasshop: PHOTOGRAPHY STUDIO CONTINU ...
studio photography: Information from Answers.com
Basic Portrait Lighting
Thursday May 19th - msnbc tv - Rachel Maddow show - msnbc.com
artisticaction : Message: Re: [artisticaction] Continuous Light vs ...