Hy Guys, what is the methods that works like the Mid and Val VB6
Functions???
Thank's 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
"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.
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
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???
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
* "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>
* "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>
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
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
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
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
"Crirus" <Cr****@datagroup.ro> schrieb Hey Cor, any ideea where Fergus is?
He is currently reducing my download traffic considerably. Great job, Fergus!
--
Armin
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
Hi Crirus,
Dont you see it, Armin has pity those long threads are gone and now he
starting one himself
:-))))))))))))))
Cor
"Crirus" <Cr****@datagroup.ro> schrieb He was quite helpfull here, so ...
I don't say what he also was.
EOT for me
--
Armin
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
* "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>
* "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>
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>
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
* "Crirus" <Cr****@datagroup.ro> scripsit: So... C# cant access Austria? LOL
LOL too...
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
* "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>
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
* "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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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&test2=test2">Test1&</a>
<a...
|
by: Luklrc |
last post by:
Hi,
I'm having to create a querysting with javascript. My problem is that
javscript turns the "&" characher into "&" when it gets used as a
querystring in the url EG:
...
|
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...
|
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);"...
|
by: Jeremy |
last post by:
How can one stop a browser from converting
&
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...
|
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 & to be valid. I don't
have Firefox my self and don't wont to install it only...
|
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 > b)...
|
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 "&". Is there some way I can get...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |