View Single Post
  #25    
Old April 4th, 2008, 08:44 PM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter Tier 2
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 22
Gender: Male
Nature: Modest
Quote:
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
Code:
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