473,781 Members | 2,280 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBScript functions versus VB functions

Hello,
I need a good help/tutorial for VB, please (I preffer *.chm help file).

Also :
for the function : now() in VBScript for getting the current time,
what is the counterpart function of VB ?

Thanks :)
Nov 20 '05
59 5868
Hello,

"Scott M." <s-***@badspamsnet .net> schrieb:
but for someone who is new to .NET why bother
learning the "old" (non OO) way?
Old <> Bad
Not OOP <> Bad
Lastly, while the use of these older functions may not bring
your app to its knees. They are NOT as efficient, by and
large, as the new method calls.


Nevertheless, sometimes readability is much higher when using the "old"
functions.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #11
Cor
Scott,
Do you mean in a same way as that old paper tape things like case sensitive
"crutch" from the paper tape C Unix computer time will been replaced by
modern methods where the power of a computer can be helpful for the
programmer in C# in a way like in VB.net now?
Cor

Nov 20 '05 #12
Cor
Scott,

Your mails give me the idea that you are thinking that a modern computer is
the same as an abacus. Sorry for you it is not. Even for me it is not a big
problem to make from a function used in VB the same pseudo code as from a
method.

Maybe you underestimate the programmers from Microsoft, I don't. So I don't
think that they did not do that, it's so much easier for the framework you
know?

Regards,

Cor
Nov 20 '05 #13
Cor
Mr. x,
Sorry but in this newsgroup that is not the topic, maybe just a few persons
who often visits this newsgroup know maybe what you ask, so the change is
little that you get an answer.

The newsgroups for that are the script groups and the asp.net newsgroup.

Sorry,
I cannot help you any furter.
Cor
Nov 20 '05 #14
Hello,

"Cor" <no*@non.com> schrieb:
Your mails give me the idea that you are thinking that a
modern computer is the same as an abacus.
LOL
Sorry for you it is not. Even for me it is not a big problem to
make from a function used in VB the same pseudo code as from a
method.
ACK
Maybe you underestimate the programmers from Microsoft,
I don't. So I don't think that they did not do that, it's so much
easier for the framework you know?


What did the Microsofties do? I don't really understand the meaning of the
sentence above...

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #15
Hello,

"Cor" <no*@non.com> schrieb:
Do you mean in a same way as that old paper tape things like
case sensitive "crutch" from the paper tape C Unix computer
time will been replaced by modern methods where the power
of a computer can be helpful for the programmer in C# in
a way like in VB.net now?


;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #16
Hello,

"Scott M." <s-***@badspamsnet .net> schrieb:
VB.NET is a true OO language now
No. VB.NET is _not_ an OO language. VB.NET _supports_ OOP as a _tool_.
You can still write applications in VB.NET without using OOP (module, 'Sub
Main', ...). C# _is_ a programming language limited to OOP only.
and as such, most of the old "functions" have been replaced with
methods.
No. The old functions _are_ methods. 'Right', for example, is a method of
the 'Strings' class.
The functions that are still there are only there as a "crutch" for migrating VB 6.0 developers,
No. They are main part of the Visual Basic .NET programming language. If
you don't use them, you may want to turn to C#. I don't know any C#
programmer who won't use certain features of his language only because they
don't fit in a certain programming paradigm.
but they do not reflect the best practices of writing code
it .NET.
VB.NET is a programming language for developing VB.NET solutions.
You might be better of beginning to examine the .NET
Framework Base Class Libraries.


The Framework is good, but VB.NET provides _more_.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #17
Hello,

"Cor" <no*@non.com> schrieb:
Sorry but in this newsgroup that is not the topic, maybe
just a few persons who often visits this newsgroup know maybe what
you ask, so the change is little that you get an answer.

The newsgroups for that are the script groups and the
asp.net newsgroup.


Why are people who don't use an IDE for developing not welcome in this
group?! Notice that I fully agree with redirecting of ASP.NET related
questions to the ASP.NET group.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #18

"Cor" <no*@non.com> wrote in message
news:3f******** *************** @reader22.wxs.n l...
Scott,

Your mails give me the idea that you are thinking that a modern computer is the same as an abacus. Sorry for you it is not. Even for me it is not a big problem to make from a function used in VB the same pseudo code as from a
method.
I don't know what this means.

Maybe you underestimate the programmers from Microsoft, I don't. So I don't think that they did not do that, it's so much easier for the framework you
know?

I don't know what that means either.
Regards,

Cor

Nov 20 '05 #19

"Herfried K. Wagner [MVP]" <hi*******@m.ac tivevb.de> wrote in message
news:eJ******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

"Scott M." <s-***@badspamsnet .net> schrieb:
but for someone who is new to .NET why bother
learning the "old" (non OO) way?
Old <> Bad


Old = Legacy = Non-consitent with current techniques
Not OOP <> Bad
Not OOP = Not OOP [.NET is ALL about OOP & the changes to VB.NET reflect
that]

Lastly, while the use of these older functions may not bring
your app to its knees. They are NOT as efficient, by and
large, as the new method calls.
Nevertheless, sometimes readability is much higher when using the "old"
functions.


Perhaps, but if you understand OOP, is it that hard to understand that
"length" is an appropriate property for a string rather than an ambiuous
function "len()" that allows a programmer to pass in anything they want
(including expressions that don't have length)?
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6827
by: John Davis | last post by:
When I create new documents in Dreamweaver, there are several choices for ASP creation: ASP JavaScript: run at client side?? ASP VBScript: run at server side?? ASP.NET C# ASP.NET VB I don't understand the differences between ASP JavaScript and ASP VBScript?? Because JavaScript is client-side technology, and ASP is server side technology. I think VBScript is used to implement ASP pages.
29
6031
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
16
9364
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other times it returns VarType() is vbEmpty. This is driving me mad! Also, does anyone know what the properties and methods are for the object returned by GetRef()? TIA.
3
4845
by: | last post by:
This is a semi-advanced question about ASP VBScript 5.0 classes. If you're knowledegable, please lend a hand! VBScript class instances can have properties that have objects assigned to them. Borrowing R.Quinn's example from ASP101: Public Property Get Authors() if not isobject(m_Authors) then set Library = New cLibrary Call Library.GetAuthorsByBookID(Me.ID)
3
2021
by: Mark Fox | last post by:
Hello, I am porting some old ASP 3.0 VBScript code to C#.NET and am not sure what the equivalent C# functions are for a couple VBScript functions. So my first question is: 1) Is there somewhere that lists old VBScript functions and their equivalent C# functions?
10
4709
by: Shadow Lynx | last post by:
That subject packs a whallop, so let me explain in better detail what's happening and how it relates to ASPX pages... In a nutshell, if the first <script /on a page is of type "text/vbscript", you cannot use inline JavaScript statements that call setTimeout with functions that start with a double-underscore. This is very relavant to ASPX (ASP Dot Net) pages because it means that AutoPostBacks will fail since they generally call the...
12
676
by: sam_cit | last post by:
Hi Everyone, I have few questions on inline functions, when i declare a function as inline, is it for sure that the compiler would replace the function call with the actual body of the function? or is it a call taken by compiler? Second, i see that it is same as what Macro's used to do for c, if so what is the advantage for going in for inline functions than to Macros?
1
3477
by: Andrew Wan | last post by:
How can VBScript code access JScript code variables in the same ASP page? <SCRIPT LANGAUGE="VBScript"> Dim a a = 10 </SCRIPT> <SCRIPT LANGUAGE="JScript"> Response.Write(a); </SCRIPT>
0
1861
by: sunita2006 | last post by:
Hello Team, I want to load a dll functions into script (both vbscript and javascript) for digital signature verification. I have tried this using CAPICOM dll and it woks well. I have a custom DLL which has got the functions which can be used for digital signature creation/verification. For this i m referring to a vb projects(.bas )in which there are certain functions are called like SetErrorMode and LoadLibrary .. thses functions are...
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10139
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6727
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.