473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Mid & Val

Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???

Thank's
Nov 20 '05 #1
25 4405

Mid and Val are available in the Microsoft.VisualBasic namespace.

Regards - OHM
André Almeida Maldonado wrote:
Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???

Thank's


Regards - OHM# On**********@BTInternet.com
Nov 20 '05 #2
"André Almeida Maldonado" <de***@bol.com.br> wrote in message
news:eW**************@TK2MSFTNGP10.phx.gbl...
is the methods that works like the Mid and Val VB6 Functions???


Mid() <= String.SubString()

Beware: CLR String's index from zero, not one, so

Mid( sText, 2 ) becomes sText.SubString( 1 )

Val() <= Integer.Parse( ) (or similar for the other types)

The VB String functions are still there (in Microsoft.VisualBasic)
but, IIRC, are just wrappers for the underlying CLR String methods.

HTH,
Phill W.
Nov 20 '05 #3
Andre'

If you want the framework near equivalents...

For Mid use StringVariable.Substring()

For Val there isn't an exact equivalent, but Double.Parse is close.

Kathleen

"André Almeida Maldonado" <de***@bol.com.br> wrote in message
news:eW**************@TK2MSFTNGP10.phx.gbl...
Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???

Thank's

Nov 20 '05 #4
Cor
Hi Andre

There are no methods for that there is only the Mid and Val functions in
VB.net.

But because you want to use only the C# compatible subset it seems, I think
that you can use for simulating the Mid function the stringbuilder and for
the Val the regulair expression.

Success

Cor
Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???

Nov 20 '05 #5
Cor
Hi Kathleen,
If you want the framework near equivalents...


Do you have information I have not?

My information is that the MID and VAL are full part of the framework.

Can you send me a link or something, I am curious for that?

Cor
Nov 20 '05 #6
"André Almeida Maldonado" <de***@bol.com.br> schrieb
Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???


They are the same in VB.NET.

See also my link in your other thread.

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7
* "One Handed Man [ OHM# ]" <OneHandedMan@&REMOVE&TO%MAIL%MEBTInternet.com> scripsit:
Mid and Val are available in the Microsoft.VisualBasic namespace.


ACK. They are members of 'Microsoft.VisualBasic.Strings' ('Mid') and
'Microsoft.VisualBasic.Conversion' ('Val').

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
* "Cor" <no*@non.com> scripsit:
If you want the framework near equivalents...


Do you have information I have not?

My information is that the MID and VAL are full part of the framework.


They are part of the framework, but not part of the framework class
library. They are part of the Microsoft Visual Basic .NET Runtime
library which is part of the .NET Framework.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #9
Cor
Hi Herfried,

They are part of the framework, but not part of the framework class
library. They are part of the Microsoft Visual Basic .NET Runtime
library which is part of the .NET Framework.

I try this translate it on a way I can understand with a metaphor

Wien is in Europe but not as a country, it is a part of Austria, which is a
part of Europe.

(And Bruxelles is a part of Europe).

Is that what you mean?

Cor
Nov 20 '05 #10
Hey Cor, any ideea where Fergus is? He could have a big smile on this

--
Cheers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Cor" <no*@non.com> wrote in message
news:Oz**************@TK2MSFTNGP09.phx.gbl...
Hi Herfried,

They are part of the framework, but not part of the framework class
library. They are part of the Microsoft Visual Basic .NET Runtime
library which is part of the .NET Framework.
I try this translate it on a way I can understand with a metaphor

Wien is in Europe but not as a country, it is a part of Austria, which is

a part of Europe.

(And Bruxelles is a part of Europe).

Is that what you mean?

Cor

Nov 20 '05 #11
Cor
Hi Crirus,

Not very recent, I am also curious if he comes back.
I would like that.
Hey Cor, any ideea where Fergus is? He could have a big smile on this


Cor
Nov 20 '05 #12
Yes, of course. They are modules in that namspace which contain the
aforesaid functions.

Regards - OHM

Herfried K. Wagner [MVP] wrote:
* "One Handed Man [ OHM# ]"
<OneHandedMan@&REMOVE&TO%MAIL%MEBTInternet.com> scripsit:
Mid and Val are available in the Microsoft.VisualBasic namespace.


ACK. They are members of 'Microsoft.VisualBasic.Strings' ('Mid') and
'Microsoft.VisualBasic.Conversion' ('Val').


Regards - OHM# On**********@BTInternet.com
Nov 20 '05 #13
"Crirus" <Cr****@datagroup.ro> schrieb
Hey Cor, any ideea where Fergus is?


He is currently reducing my download traffic considerably. Great job, Fergus!
--
Armin

Nov 20 '05 #14
He was quite helpfull here, so ...

--
Cheers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Armin Zingler" <az*******@freenet.de> wrote in message
news:ek**************@TK2MSFTNGP11.phx.gbl...
"Crirus" <Cr****@datagroup.ro> schrieb
Hey Cor, any ideea where Fergus is?
He is currently reducing my download traffic considerably. Great job,

Fergus!

--
Armin

Nov 20 '05 #15
Cor
Hi Crirus,

Dont you see it, Armin has pity those long threads are gone and now he
starting one himself

:-))))))))))))))

Cor
Nov 20 '05 #16
"Crirus" <Cr****@datagroup.ro> schrieb
He was quite helpfull here, so ...


I don't say what he also was.

EOT for me
--
Armin

Nov 20 '05 #17
EOT, From a telecoms background by any chance ?

Regards - OHM
Armin Zingler wrote:
"Crirus" <Cr****@datagroup.ro> schrieb
He was quite helpfull here, so ...


I don't say what he also was.

EOT for me


Regards - OHM# On**********@BTInternet.com
Nov 20 '05 #18
* "Cor" <no*@non.com> scripsit:
They are part of the framework, but not part of the framework class
library. They are part of the Microsoft Visual Basic .NET Runtime
library which is part of the .NET Framework.

I try this translate it on a way I can understand with a metaphor

Wien is in Europe but not as a country, it is a part of Austria, which is a
part of Europe.

(And Bruxelles is a part of Europe).

Is that what you mean?


IMO wrong "translation".

..NET Framework = Europe
Visual Basic .NET Runtime Library = Austria
Framework Class Libary = all other countries in Europe

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #19
* "Cor" <no*@non.com> scripsit:
Not very recent, I am also curious if he comes back.
I would like that.


Maybe he found some work...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #20
So... C# cant access Austria? LOL

--
Cheers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:br************@ID-208219.news.uni-berlin.de...
* "Cor" <no*@non.com> scripsit:
They are part of the framework, but not part of the framework class
library. They are part of the Microsoft Visual Basic .NET Runtime
library which is part of the .NET Framework.

I try this translate it on a way I can understand with a metaphor

Wien is in Europe but not as a country, it is a part of Austria, which is a part of Europe.

(And Bruxelles is a part of Europe).

Is that what you mean?


IMO wrong "translation".

.NET Framework = Europe
Visual Basic .NET Runtime Library = Austria
Framework Class Libary = all other countries in Europe

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #21
Cor
Hi Crirus,
So... C# cant access Austria? LOL


I am glad that you did add that, now I understand what Herfried did want to
say
:-))
Cor
Nov 20 '05 #22
* "Crirus" <Cr****@datagroup.ro> scripsit:
So... C# cant access Austria? LOL


LOL too...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #23
* "Cor" <no*@non.com> scripsit:
So... C# cant access Austria? LOL


I am glad that you did add that, now I understand what Herfried did want to
say


C# can access the VB.NET runtime library, but IMO that's ugly when you
use /VB.NET/ functions inside /C#/.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #24
Cor
It becomes clearer and cleared

C# can access the VB.NET runtime library, but IMO that's ugly when you
use /VB.NET/ functions inside /C#/.

Like those trucks from other European countries who want to access Austria

:-)))))))))))

Cor
Nov 20 '05 #25
* "Cor" <no*@non.com> scripsit:
It becomes clearer and cleared

C# can access the VB.NET runtime library, but IMO that's ugly when you
use /VB.NET/ functions inside /C#/.

Like those trucks from other European countries who want to access Austria


As long as they don't want to access Austr_al_ia...

;-)))

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #26

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

Similar topics

9
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
4
by: Luklrc | last post by:
Hi, I'm having to create a querysting with javascript. My problem is that javscript turns the "&" characher into "&amp;" when it gets used as a querystring in the url EG: ...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
11
by: Jeremy | last post by:
How can one stop a browser from converting &amp; to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
7
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.