At first please open menu "Options" and select in combobox "Decompile to mnemonics". Redecompile your program, you'l see a p-code language in your function. For example, I compile sample with your code and it may be processed to p-code as:
Private Sub Form_Unload(Cancel As Integer) '401834
'Data Table: 4012C4
loc_401820: ImpAdLdI2 MemVar_40201C
loc_401823: LitI2_Byte 0
loc_401825: EqI2
loc_401826: BranchF loc_401830
loc_401829: LitI2 255
loc_40182C: IStI2 Cancel
loc_40182F: ExitProcHresult
loc_401830: ' Referenced from: 401826
loc_401830: ExitProcHresult
loc_401831: ExitProcHresult
loc_401832: BranchFVar
End Sub
BranchF - is a jump, EqI2 - "if var_XX then. To fix your problem,
simply change BranchF to Branch (analog in assembler - jne to jmp).
BranchF - &h1С opcode, Branch is &h1E opcode. Simply open menu
"Tools", "Patch data", enter address with BranchF, 1E to "Data" field
and press "Set". It's all.
Thank you for using our software!