VB.net Passing value of Array 1, to Array 2 -
so have code, , need pass value of array1 array2, value of array2 should array1 + (key mod 255) key put user
private sub mod_btn_enc_click(sender object, e eventargs) handles mod_btn_enc.click dim counter integer = 0 if mod_tb_key.text = "" messagebox.show("pls input modulo key value", "error", messageboxbuttons.ok, messageboxicon.error) else modkey = mod_tb_key.text end if modmodulo = modkey mod 255 'formula mod_tb_mod.text = modmodulo 'i used show working 'modbyte = array 1 'modconverted = array2 each integer in modbyte counter += 1 modconverted(counter - 1) = modbyte(i - 1) + (modmodulo) 'formula used next mod_tb_enc.text = string.join(" ", modconverted) 'show array in textbox
here interface
i've managed way.
for = 0 modbyte.getupperbound(0) counter += 1 redim preserve modconverted(counter - 1) modconverted(counter - 1) = modbyte(i) + (modmodulo) next
thanks explaining @phoog
Comments
Post a Comment