Click here to Skip to main content
16,020,512 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz10-Jun-23 1:34
Member Alienoiz10-Jun-23 1:34 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan10-Jun-23 1:44
mveRichard MacCutchan10-Jun-23 1:44 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz10-Jun-23 3:31
Member Alienoiz10-Jun-23 3:31 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan10-Jun-23 3:34
mveRichard MacCutchan10-Jun-23 3:34 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz10-Jun-23 3:53
Member Alienoiz10-Jun-23 3:53 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan10-Jun-23 4:03
mveRichard MacCutchan10-Jun-23 4:03 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz10-Jun-23 4:34
Member Alienoiz10-Jun-23 4:34 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan10-Jun-23 4:51
mveRichard MacCutchan10-Jun-23 4:51 
Your first two lines duplicate each other:
VB
Dim items = ListBox1.SelectedItem() // get a list of the SelectedItem(s)
For Each items In ListBox1.SelectedItems // do the same, but duplicating the variable name

But either way they make little sense as you do not do anything with the item you pull from the ListBox.

You need something like:
VB
' I am making an assumption that the ListBox entries are names of the files to be processed
For Each file As String In ListBox1.SelectedItems ' Extract each file name
    ' So pass this name to a subroutine that will:
    '    Open the file
    '    Process all the tags according to the CheckBox settings
    '    Save and Close the file
Next

Try not to write all your code inline, as it makes it so much more dificult to read and, more importantly, to debug.
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz10-Jun-23 5:15
Member Alienoiz10-Jun-23 5:15 
GeneralRe: Crash on converting string to byte Pin
Richard MacCutchan10-Jun-23 5:39
mveRichard MacCutchan10-Jun-23 5:39 
GeneralRe: Crash on converting string to byte Pin
Member Alienoiz10-Jun-23 5:42
Member Alienoiz10-Jun-23 5:42 
GeneralRe: Crash on converting string to byte Pin
Gerry Schmitz8-Jun-23 5:07
mveGerry Schmitz8-Jun-23 5:07 
AnswerRe: Crash on converting string to byte Pin
jschell8-Jun-23 6:58
jschell8-Jun-23 6:58 
QuestionCapturing picture on an Access form by code Pin
Opam Brown28-May-23 12:06
Opam Brown28-May-23 12:06 
QuestionRe: Capturing picture on an Access form by code Pin
Richard MacCutchan28-May-23 21:05
mveRichard MacCutchan28-May-23 21:05 
AnswerRe: Capturing picture on an Access form by code Pin
Andre Oosthuizen2-Jun-23 0:15
mveAndre Oosthuizen2-Jun-23 0:15 
AnswerRe: Capturing picture on an Access form by code Pin
jschell29-May-23 6:13
jschell29-May-23 6:13 
AnswerRe: Capturing picture on an Access form by code Pin
Gerry Schmitz29-May-23 7:14
mveGerry Schmitz29-May-23 7:14 
Questionwhat is visual basic used for Pin
Simon Osabo Asamoah27-May-23 18:33
Simon Osabo Asamoah27-May-23 18:33 
AnswerRe: what is visual basic used for Pin
Richard MacCutchan27-May-23 20:53
mveRichard MacCutchan27-May-23 20:53 
AnswerRe: what is visual basic used for Pin
Andre Oosthuizen2-Jun-23 0:17
mveAndre Oosthuizen2-Jun-23 0:17 
GeneralRe: what is visual basic used for Pin
Ralf Meier2-Jun-23 10:13
mveRalf Meier2-Jun-23 10:13 
GeneralRe: what is visual basic used for Pin
Andre Oosthuizen5-Jun-23 21:55
mveAndre Oosthuizen5-Jun-23 21:55 
GeneralRe: what is visual basic used for Pin
Ralf Meier5-Jun-23 22:59
mveRalf Meier5-Jun-23 22:59 
AnswerRe: what is visual basic used for Pin
David Mujica6-Jun-23 3:32
David Mujica6-Jun-23 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.