Go Back   RunUO - Ultima Online Emulation > Developer's Corner > Programming > Visual Basic

Visual Basic Visual Basic Discussion

Closed Thread
 
Thread Tools Display Modes
Old 12-14-2005, 12:14 AM   #1 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default Scripting In VB.NET

I have some time off from work and school and I am going to be making some scripts in VB.NET for RunUO. On doing so I will write a little tutorial/converting essay on doing so. BTW if anyone on the forums has any questions regarding VB post here and I will try to offer my advice and assistance.

- Ryan(Not the admin Ryan)
rsmiller21 is offline  
Old 12-14-2005, 07:53 AM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by rsmiller21
I have some time off from work and school and I am going to be making some scripts in VB.NET for RunUO. On doing so I will write a little tutorial/converting essay on doing so. BTW if anyone on the forums has any questions regarding VB post here and I will try to offer my advice and assistance.

- Ryan(Not the admin Ryan)
Just a suggestion :-)

If your good enough to work with VB.NET without help then you should. But writting a guide to help people who cannot even code in C# write code in VB.NET is a mistake.

There are very few people who can help them. Thus when they have troble only a few select people can help him.

Your welcome to do this guide, just inform people of that fact, that by writing a script in VB.NET they don't gain anything.
Phantom is offline  
Old 12-14-2005, 08:32 AM   #3 (permalink)
 
Wrycina's Avatar
 
Join Date: Nov 2004
Location: Clinton, IA
Age: 17
Posts: 246
Send a message via AIM to Wrycina Send a message via MSN to Wrycina
Default

If anyone wants to see a script in VB.Net then download SharpDevelop...You can open scripts you already have in C# and convert them to VB.Net.
__________________
Kingdoms Ultima Online
Check Out Whats Happening On Kingdoms
...Or Don't...
:D
Wrycina is offline  
Old 12-14-2005, 01:10 PM   #4 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default

Quote:
If your good enough to work with VB.NET without help then you should. But writting a guide to help people who cannot even code in C# write code in VB.NET is a mistake.
lol, Phantom that is very true and some of the posts I have seen here are kinda scary. Sometimes I wonder if some of these people would instead go out and buy a book or two on programming instead of buying toys, a skateboard or a bag of pot most of these questions wouldn't be answered here.

This tutorial here is pretty simple. In it you are creating a "sample item". Basicly, I am showing side by side comparisons between C# and VB code. It is stated in the introduction that "help will be very very limited in the RunUO forums given the fact that RunUO was founded on C# and therefore supports C# development."

This tutorial will not be a primer into writting in VB for RunUO and not meant for amature programmers. This is meant for those that might want to actualy take the time to learn a new programming language on their own(With that limited support) through their own experimentation(Trial and error, something I guess they don't teach in school anymore).

Anyways, I feel like I am ranting so I will just stop now. Thanks for your post Phantom your suggestions and comments are welcomed.

- Ryan(Not the admin Ryan)
rsmiller21 is offline  
Old 12-14-2005, 01:28 PM   #5 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 21
Posts: 3,933
Default

Quote:
Originally Posted by Phantom
If your good enough to work with VB.NET without help then you should. But writting a guide to help people who cannot even code in C# write code in VB.NET is a mistake.
Why is it worse? Does it matter which language they can't write code in? VB.Net might be easier for some since its more verbose in syntax. I mean, its like writing a damn paragraph that you could turn in as an English paper.
TheOutkastDev is offline  
Old 12-14-2005, 02:02 PM   #6 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default

VB English Paper:

Private Const

Imports System
Imports System.Text


Public Class WhyIHateOracleDBAAndForms

Public Sub WriteCrap()

For i as Integer To 150
TextBox1.Text = TextBox1.Text & " Oracle Forms Suck "
Next
End Sub
End Class

Use that code and let me know if it works lol. A+ hurray!
rsmiller21 is offline  
Old 12-14-2005, 05:15 PM   #7 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 21
Posts: 3,933
Default

My teacher said: "Brilliant work! A++! I wasn't sure what was going to happen there at the end, and that End Sub totally threw me!"
TheOutkastDev is offline  
Old 12-14-2005, 05:35 PM   #8 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default

Awsome! lol
rsmiller21 is offline  
Old 12-15-2005, 01:14 PM   #9 (permalink)
 
Join Date: May 2005
Location: Maine
Posts: 783
Default

Quote:
Originally Posted by TheOutkastDev
Why is it worse? Does it matter which language they can't write code in? VB.Net might be easier for some since its more verbose in syntax. I mean, its like writing a damn paragraph that you could turn in as an English paper.

I agree! I personally can't stand VB myself, but that doesn't mean other people might not gain something from it. Just like people that know C/C++/C# might say "Why learn VB? It's useless", people that are all into VB could say "Why would you want to do C? It's ugly", or something.

The more resources people have, the better all around, IMHO.
Arvoreen is offline  
Old 12-15-2005, 04:41 PM   #10 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default

I wouldn't say VB is useless... I have been working for a freelance company for about 6 months now and all we work with is VB and ASP. I personaly have written a Administation backend in a project that connects to a Oracle Server. This application was written for Huntsman Chemical(A company of Exxon Mobile) for chromatography related retrieval and storage. Basicly, the project that I have worked with is helping to make the gassoline you put in your car or truck. I wouldn't say that is useless.

Anyways, from a beginners stand point VB might be a little easier to understand. This is the beginning of the class not end it here. Begin your procedure here and end it here. It is pretty straight forward. However, VB does have its draw backs but for the development of simple scripts written for the RunUO community this language should be just fine. I believe this is a untapped resource for the beginners to work with to better understand the fundamentals of programming.
rsmiller21 is offline  
Old 12-19-2005, 12:14 PM   #11 (permalink)
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

i luv vb, btw could you "accidently change the prices
Swerve_jnr is offline  
Old 12-19-2005, 04:35 PM   #12 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default

lol, of gas? Hell, I wish I could. $2.17 here and I drive about 60 miles a day. 120+ on weekends.
rsmiller21 is offline  
Old 12-28-2005, 11:03 AM   #13 (permalink)
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

hehe lol, btw could you send me your msn address so i could speak to you about some vb applications that i'm stuck with?
Swerve_jnr is offline  
Old 01-01-2006, 01:48 PM   #14 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default

Swerve_jnr, I sent you a e-mail.
rsmiller21 is offline  
Old 01-01-2006, 06:21 PM   #15 (permalink)
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

cool thx do you use msn or do you just you th e-mail?
Swerve_jnr is offline  
Old 01-01-2006, 07:57 PM   #16 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default

Just e-mail. I have icq if you have it. I never much liked MSN. Sorry, for those MSN users....
rsmiller21 is offline  
Old 01-03-2006, 08:26 AM   #17 (permalink)
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

do you have it because at this moment you appear on msn as busy
Swerve_jnr is offline  
Old 01-03-2006, 02:29 PM   #18 (permalink)
Forum Novice
 
rsmiller21's Avatar
 
Join Date: Feb 2005
Location: Stephenville, Tx
Age: 25
Posts: 225
Send a message via ICQ to rsmiller21 Send a message via MSN to rsmiller21
Default

Yeah, I got msn. Just message me.
rsmiller21 is offline  
Old 01-04-2006, 11:17 AM   #19 (permalink)
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

ok done it
Swerve_jnr is offline  
Old 01-04-2006, 11:36 AM   #20 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

There is one impact of RunUO scripting in VB verses C# that users should be aware of. Since the compiler processes all C# scripts first and VB scripts second, VB scripts can reference methods and properties from C# scripts--but C# scripts cannot reference methods and properties of VB scripts. They don't yet exist when the C# scripts are processed.

It is actually more a limitation on C#, and may never pose a problem, but it is only an issue if there are VB scripts present. Just wanted to be sure you were aware of that point--it may be good to mention in your tutorial.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline  
Old 01-04-2006, 11:46 AM   #21 (permalink)
 
Join Date: May 2005
Location: United Kingdom
Age: 16
Posts: 255
Send a message via MSN to Swerve_jnr
Default

you see thats why we need someone like david around he thinks so time in't wastd in running into massive problems nice 1
Swerve_jnr is offline  
Old 03-08-2006, 03:00 PM   #22 (permalink)
 
Join Date: Jan 2006
Posts: 1
Default

I think it's stupid to assume that if someone can't code scripts in C# they can't code in VB. I used to be a proffesional VB developer, my VB skills are top notch, I don't know the first thing about c#. I think it's great this guy want's to write a tutorial to help us VB guys out
zeocrash is offline  
Old 03-08-2006, 07:18 PM   #23 (permalink)
Forum Expert
 
Join Date: Aug 2004
Location: Redmond, WA
Age: 21
Posts: 1,288
Send a message via AIM to Sep102 Send a message via MSN to Sep102
Default

Quote:
Originally Posted by zeocrash
I think it's stupid to assume that if someone can't code scripts in C# they can't code in VB. I used to be a proffesional VB developer, my VB skills are top notch, I don't know the first thing about c#. I think it's great this guy want's to write a tutorial to help us VB guys out
Perhaps he is assuming that for those who have never coded anything and have no prior knowledge of programming before coming here, using VB .NET to write scripts would be a poor idea, most especially concerning the level of support they would likely receive on them than if they were written in C# (that is, not saying that VB .NET is a bad language or development platform, only that the vast majority here who know how to program most likely know more C# than VB).
Sep102 is offline  
Old 03-08-2006, 07:33 PM   #24 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 34
Posts: 3,848
Default

Quote:
Originally Posted by Sep102
Perhaps he is assuming that for those who have never coded anything and have no prior knowledge of programming before coming here, using VB .NET to write scripts would be a poor idea, most especially concerning the level of support they would likely receive on them than if they were written in C# (that is, not saying that VB .NET is a bad language or development platform, only that the vast majority here who know how to program most likely know more C# than VB).
personally i know more VB then C#, but I write all my scripts in C# for the exact reason that was mentioned in this thread... the order in which they compile prevents any C# script from accessing anything in a VB script although you can have a VB script access information from a C# script... It's all just a compiler order issue... but, there you have it.
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline  
Old 03-09-2006, 01:47 AM   #25 (permalink)
Forum Expert
 
Join Date: Aug 2004
Location: Redmond, WA
Age: 21
Posts: 1,288
Send a message via AIM to Sep102 Send a message via MSN to Sep102
Default

Quote:
Originally Posted by Greystar
personally i know more VB then C#, but I write all my scripts in C# for the exact reason that was mentioned in this thread... the order in which they compile prevents any C# script from accessing anything in a VB script although you can have a VB script access information from a C# script... It's all just a compiler order issue... but, there you have it.
Yes, but for how many other people on these forums is that true for?
Sep102 is offline  
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5