Hi everyone. I'm using a common dialog control to select filenames. The problem is that they must have multiple selection option.
When I try to parse the FileName property I get this weird character "" I dunno what to use to compare this special character. The code follows
files = dlgSelArchivo.FileName
n = Len(files)
For j = 1 To n
char = Mid(files, j, 1)
If char = Null Then
flag = 1
ElseIf char <> Null And flag >= 1 Then
final = final + char
ElseIf char = Null And flag >= 1 Then
final = final + "; "
End If
Next j
If char = Null Then
this is not fine in Vb6
you must code differently:
suppose char is a variant, you can code:
if isEmpty(char) then
in case you did not assigned anithing
or
if isNUll(char) then
in case you read from a db a null field
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Bookmarks