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


TubeTape Chromakey Paint - Green


TubeTape Chromakey Paint – Green


$49.95


Chroma-Key Video Paint has been formulated with the assistance of video technicians all over the world. It’s manufactured to provide the high luminance values and color saturation for keying effects. DILUTION: Use straight out of the can. If necessary, dilute with water. Diluting Chroma Key paints may make coverage less even.

SURFACE PREPARATION: Surfaces to be painted must be free of dirt, oil, …


Visions of Light: The Art of Cinematography


Visions of Light: The Art of Cinematography


$24.99


Visions of Light is not just for film buffs. In fact, if the presentation of the Oscar for Best Cinematography is your cue to take a bathroom break from the Academy Awards, then this exhilarating documentary will help you see movies in a whole new light. Named Best Documentary by the National Society of Film Critics as well as several film-critic associations, Visions of Light traces the history a…

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 (304) 40″ 5-IN-1 REFL.KT…

Photo Basics 402 uLite Video Lighting Kit


Photo Basics 402 uLite Video Lighting Kit


$249.90


We’ve all heard of the wonders of using Green Screen for video, but for the first time ever, we teach how simple and easy this technique really is. Play live at a rock concert, conduct an interview in front of the Eiffel Tower, enjoy a day at the beach–the possibilities are endless. The Westcott 402 comes complete with everything you need: Lighting, Green Screen, Educational DVD, Digital Video DV…



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

Patio Umbrella Lights by RandomActs
artisticaction : Messages : 9690-9719 of 10791
Konstantin Stanislavsky: Biography from Answers.com
BBC Monograph no 14
lighting and lighting equipment: Information from Answers.com
Taking the Rough-and-Tumble Approach to Science - New York Times
New camera pushes limits of digital photography - CNN.com
Flickr: Discussing Strobes or Continuous Lighting? My brain is ...
R&D White Paper
General Electric 3Q 2007 Earnings Call on Oct. 12. 2007 / 8:30AM