Learn the Rules, Break The Rules, and Create the New Ones...

Hi... My name is Rizky Prihanto. You can call me RQ, or Rizky either. I am currently living on Bandung, Indonesia. Had a lot of works and research about Enterprise Information Systems (majoring on education and e-governments). I have bunch of interests (some friends call it 'freakz') about MySQL Opensource Database and now I am one of the administrator of MySQL Indonesia User Group - the opensource community initialized by Sun Microsystems Indonesia.

My Company PT Cinox Media Insani, Bandung, Indonesia. I work here since 2008 and I take responsibility as Chief of Software Architect. My job is about planning, imaginating, fantasy-ing, concepting, and build the infrastructure of the new information systems (or app engines) which going to be implemented.

This blog This is my blog that represent my current opinion, research and experiences about anything in Software Engineering. Written since 2007 (actually) and has been vaccum for a lot of while. And now I wanna ressurrect this blog (optimistically) from the long-long-hibernation with something fresh and new ideas -- still about MySQL, software engineering, development, and may be something managerial here.

About the tagline I've learned the statement above from some paper written by Kent Beck about Extreme Programming (XP) methodology -- some sort of practical software development methods which have no boundaries. That's very inspiring me a lot. I have written some article on this blog that tell my interpretation about that statement here.

My Another Blogs I have classifying my blogs into some sort of genre. The blog that you read here right now is my primary blog that tell you (majoring) about IT stuff. But if you wanna look another side of me, you can visit here, here, here,or here. Hope it'll be interesting for some of you.

Credits I would thanks to Blogger for this great blog platform. Skinpress who designed this Wordpress template (which is bloggerized by Free Blogger Templates). My appreciate is also going to you who give your generously time for visiting my blog.

Clear Text Value di Combobox

Huff... udah coding 6 tahun, koq aku baru tau ya klo cara nge-clear text secara proper utk Combobox adalah dengan set listindex = -1...

pernah njumpain nggak, klo kmu nyetting Combo1.style mu = dropdown list? pasti pernah nemuin error klo misal kmu mo nge-clear dgn set combo1.text = "" akan ngebangkitin error "Text Property is Read-Only!" Iya kan? Bahkan buku (CHM) Programming Microsoft Visual Basic 6.0 aja jg bilang gak nganjurin pemakaian Combo.Style = Dropdown List.

Quote:
Drop-down list controls pose special problems in programming. For example, they never raise Change and keyboard-related events. Moreover, you can't reference all the properties that are related to activity in the edit area, such as SelStart, SelLength, and SelText. (You get error 380—"Invalid property value.") The Text property can be read and can also be written to, provided that the value you assign is among the items in the list. (Visual Basic performs a case-insensitive search.) If you try to assign a string that isn't in the list, you get a run-time error (383—"Text property is read-only"), which isn't really appropriate because the Text property can sometimes be assigned).


... makanya banyak yg milih data-combo (bound-control)... tapi pemakaian data-aware control bukan menyelesaikan masalah, tp banyak masalah2 lain yg bermunculan... salah satunya adalah dgn konsistensi data, memory leak, sampe yang kethok motho kya ngga bs di-apply nya XP Manifest ke component slain Windows Common Controls...

sekarang, PROBLEM SOLVED! aku kembali makae combo. Ngga pake2 lg data-combo. ngga pake2 lg Microsoft Forms 2.0 Combo. ngga pake2 lagi Data Combo nya ComponentOne...
untuk nge-reset property text jadi kosong, sebagaimana text1.text = "", aku kini makae combo1.listindex = -1

... alhamdulillah ... Surprised Surprised

NB : konsep ini berlaku untuk *semua* jenis combobox di semua environment Win32, mulai dari VB, Delphi, hingga komponen2 combo yang aneh2... karena pada dasarnya mreka mbikin component combo semuanya inherits dari native combobox.

6 comments:

andika mengatakan...

tes

Anonim mengatakan...

thanks so much....

Anonim mengatakan...

makasih bgt om ..ilmunya

Anonim mengatakan...

sangat membantu. tq gan

Anonim mengatakan...

sumpah deh sangat membantu hahaa

Anonim mengatakan...

thanks gan...

Posting Komentar