|
-
March 16th, 2005, 05:22 AM
#1
-
March 17th, 2005, 02:12 PM
#2
Re: Better solution for Click event
You should do the non-GUI related operation (rs232 connection) in a background thread if it may take more than a second or two.
"The Chicken and Rice MRE is not a personal lubricant."
-
March 18th, 2005, 06:48 AM
#3
Re: Better solution for Click event
 Originally Posted by Jewe
in VB a simple DoEvent would do the trick
yes, but VB doesnt support the notion of multi-threading without some seriously complicated pitfalls. In java we would give this task to a separate thread, but if you come from a VB background, do read up on multithreading first (to a good extent) because its something you are unlikely to have come across or managed (if your background is purely VB)
also, note that VB is intended to be a rapid development language, with a lot of convenience features and a great number of inconsistencies. I've seen some very sloppy vb coding which lead me to consider that many VB programmers are quite lazy about the code they write. I dont mean this as a derogation, merely a caution that java requires much more hard work than VB because it isnt so "thrown together with convenience in mind". (Sorry)
-
March 21st, 2005, 04:29 AM
#4
-
March 21st, 2005, 12:22 PM
#5
Re: Better solution for Click event
"The Chicken and Rice MRE is not a personal lubricant."
-
March 21st, 2005, 06:06 PM
#6
Re: Better solution for Click event
 Originally Posted by Jewe
Joe Nellis and Cjard thank you both for the reply.
any good tips of which articals to read?
I agree with the fact that VB does allow you to program poorly.
but which programming tools does not?
oh, of course.. all progrmming languages have scope for making a real dog's dinner of things, but VB more so than most, i see, because of the huge number of conveniences it offers; if you need a variable, you just write the name without needing to declare it. if youre doing string concatenation you can use & or +, but they do behave differently, there are shortcuts for common types, the looping structures have no fine grained control..
it's very... basic?
kinda like Mac OS; it doesnt lend itself to power applications, because it doesnt generally have power users. that's not to say that every vb program is noddy art, just that the better examples of poorly structured, ill thought out code, are found in vb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|