Closed Thread Icon

Topic awaiting preservation: Visual Basic (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8788" title="Pages that link to Topic awaiting preservation: Visual Basic (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Visual Basic <span class="small">(Page 1 of 1)</span>\

 
Micvisual Tuffery
Neurotic (0) Inmate
Newly admitted

From: New Zealand
Insane since: Jul 2003

posted posted 07-30-2003 06:38

===========================
====VISUAL BASIC QUESTIONS.====
===========================

What are the Basics in Visual Basic?

Can anybody recomend a good tutorial for me to try?

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-30-2003 08:46

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Kaniz
Bipolar (III) Inmate

From:
Insane since: Jun 2003

posted posted 07-30-2003 17:17

VB isnt *that* bad. I had been/am a long time C++/C programmer, and when I first dove into web programming, focused on PHP.

However, at my current place of employment, they are M$ Certified, and as a result, want to use Microsoft technlogoies, and are using ASP (they have not made the migration to .NET yet).

So, when I got a big ol programming job slapped onto my lap, I asked.. PHP? .. and was told no, do it with ASP, so my dive into the wonderful world of VB began. Its not *that* hard, I picked up a book on it, and rarely reference it but is usefull now and then.

If your looking at doing VB for webprogramming, I guess a few 'basics' to keep in mind are.

--- Basic for loop

code:
For x = 1 to 20 step 1
cmd1
cmd2
cmd3
next



--- if/then/else

code:
if x = "yes" then
cmd1
cmd2
cmd3
else
cmd1
cmd2
cmd3
end if



Unlike languages like C++/PHP/Java .. when doing comparsions, its a single =, not == .

ie:
c++ : if(x==y) .. in VB, it'd eb if x = y

variables/functions/etc in VB are not case senstive.. bob=Bob=bOb=boB
you dont need to delcare variables before you use them

If your doing ASP programming, while you can do code like

code:
<%
for x = 1 to 10
%>

This is <%=x%><br>

<%
next
%>


would display
This is 1
This is 2
..
..
This is 10

it can get confusing to manage large ammounts of code like that, I'd recomend doing

code:
for x = 1 to 10
Response.Write("This is " & x & " <br>")
next



or

code:
for x = 1 to 10
strWrite = strWrite & "This is " & x & "<br>"
next
Response.Write(strWrite)



While for "real" programming/applications/etc, I still prefer to use C++. I am growing kinda fond of using ASP/VB for database/web development.



InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-30-2003 17:56

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 07-30-2003 19:11

Shouldn't this be in server-side scripting and not DHTML? If so I'll move it.

___________________
Emps

FAQs: Emperor

Jan_man
Nervous Wreck (II) Inmate

From:
Insane since: Jun 2003

posted posted 07-31-2003 16:46

I have a different perspective.....

I started programming long ago with basica, then qbasic, and now mainly Visual Basic. To be honest you can do LOTS of things with VB; I've heard many disparaging remarks in the past, but have come to realize that in most cases they were based on a lack of knowledge from the person making the remark.

I have written programs that work through com ports, I've written programs that access the internet, I even have a couple of programs that write javascript based web pages -- they're limited in scope, but mighty easy to use! The biggest concern you'll have is which version of VB to buy (well, I frankly don't know about vbnet) -- if you want to do fancy stuff you need the "professional" version. Frankly I've had to purchase additional resources to improve my VB capability (mainly books about the advanced functions stemming from various system dll's) , and then again yesterday I was having touble ejecting a cd from within a program I was writing -- I found the solution on the Web!


By the way, using the "option compare text" statement makes bOb equal to BoB otherwise they are not equal.

The greatest hinderance with visual basic, as I see it, is the inability to carry a program across different operating systems -- I've tried (okay, halfheartedly tried) to learn C++ so that I could write cross-platform programs, but then again I'd hate to have to recode all the stuff I already have!!!

Hope this helps!
Jan

Kaniz
Bipolar (III) Inmate

From:
Insane since: Jun 2003

posted posted 07-31-2003 17:27

Alot of people like to say "real coders dont use VB"

IMO

"Real coders use the best tool for the job"

If it happens to be VB, so be it. If it happens to be C++, so be it .. if it happens to be Cobol .. well, I feel sorry for you.


Jan_man
Nervous Wreck (II) Inmate

From:
Insane since: Jun 2003

posted posted 08-01-2003 15:15

I'm sorry, I just re-read your question only to realize that you asked about a tutorial!

You can, certainly in older versions anyway, buy a textbook in a college bookstore usually titled "introduction to Visual Basic x" that has a limited version of visual basic on cd and tutorial stuff! usually you can't make executables, but it might help you decide if VB is right for you -- keep in mind that these are generally the "lowest" form of VB, but they will at least give you a clue about VB itself.

Our bookstore (I work in a college) is currently selling a version of VB .NET with a sixty day trial version of the professional edition for $41 -- I just checked on Ebay and found a "learning edition" of VB 6 for $52.

That kind of stuff would likely be your best bet for a VB tutorial!

Happy Coding!
Jan

« BackwardsOnwards »

Show Forum Drop Down Menu