Cade wrote:Jackmn wrote:Cade wrote:Whole VB Code, works properly when decoding but not encoding. Anyone know why? Command1 decodes, command2 encodes, assuming the data is stored in text1.text
Not to be a prick, but you
really need to tab your code.
Everyone tells me that
Right, changed Integer to Long.
Any ideas why encoding doesnt work?
Edit: I opened and decoded the language file. It has corrupted my fragile little mind.
OK, I've just run a couple of test strings - e.g abcdefabcdef, 1234567890, abcdefghijklmnopqrstuvwxyz, through the code.
Key in the string and then press the decode and encode buttons which should return the original text - the alpha strings work fine, but the numeric strings (or any string with one or more of the more esoteric ascii characters) does not come back correctly after the cycle.
Hope this gives some clues - I'll look at the code further later.
DaveG