View Single Post
Old April 4th, 2008 (8:44 PM).
Darthatron's Avatar
Darthatron Darthatron is offline
Silver Tier
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 25
Gender: Male
Nature: Modest
Posts: 1,152
Originally Posted by ZodiacDaGreat View Post
Worked again!, now how about a code that checks whether theres a value in the textbox, in my case txtR. So there wont be any mis-compilation of bytes into the ROM

Thanks again, Darthatron
If Len(txtR.Text) > 0 Then
    WriteHex ROMLocation, CLng("&H" & txtR.Text), Data
End If
The Len() Function checks the length of a String. It is used mostly for checking if you have any data held in a Variant. :D

The code "If Len(txtR.Text) > 0 Then" checks if the Length of the Data in the String is above 0. 'If' it is then it will do the code before 'End If'.
あなた は しきしゃ です
わたし は ばか です
Reply With Quote