|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
vb6 to vb.net migrationI am a vb (classic vb5/vb6) programmer who is getting his feet wet with ..net. I have been attempting to use various old vb functions and tweek them as required to get thme to run under .net. In many cases I was pleasently surprised by how easy it was, and in other cases I have had to do searches on the net as the local help is nearly worthless(too much information that I dont need). Can anyone recommend a place on the web where there is a good table of equlivent(vb > .net) translations? At presently I am looking to find a translation for the FUNCTON "String" which takes 2 arguments to create a string with X occurances of Y: Old VB = String(5,"A") . This returns a string of "AAAAA". All web searches to date either take me down the path of -string as varibale- or -string as an object- to be parsed. Comments? Thanks bartj Hello bar***@gmail.com,
String (As your 'useless' MSDN documentation points out) as objects.. Objects have ctors.. An abundance of information is NEVER a Bad Thing. Dim tString as String = New String("A", 5) -Boo Show quoteHide quote > Hello, > I am a vb (classic vb5/vb6) programmer who is getting his feet wet > with > .net. > I have been attempting to use various old vb functions and tweek them > as required to get thme to run under .net. In many cases I was > pleasently surprised by how easy it was, and in other cases I have had > to do searches on the net as the local help is nearly worthless(too > much information that I dont need). > > Can anyone recommend a place on the web where there is a good table of > equlivent(vb > .net) translations? > > At presently I am looking to find a translation for the FUNCTON > "String" which takes 2 arguments to create a string with X occurances > of Y: Old VB = String(5,"A") . This returns a string of "AAAAA". > All web searches to date either take me down the path of -string as > varibale- or -string as an object- to be parsed. > Comments? > Thanks > bartj Thanks for the resposne...
Your code works. Understand that I need to get with the object way of doing things...just a little un-natural at this point, but its sure to get better...again...thanks! bartj GhostInAK wrote: Show quoteHide quote > Hello bar***@gmail.com, > > String (As your 'useless' MSDN documentation points out) as objects.. Objects > have ctors.. > An abundance of information is NEVER a Bad Thing. > > Dim tString as String = New String("A", 5) > > -Boo > > > Hello, > > I am a vb (classic vb5/vb6) programmer who is getting his feet wet > > with > > .net. > > I have been attempting to use various old vb functions and tweek them > > as required to get thme to run under .net. In many cases I was > > pleasently surprised by how easy it was, and in other cases I have had > > to do searches on the net as the local help is nearly worthless(too > > much information that I dont need). > > > > Can anyone recommend a place on the web where there is a good table of > > equlivent(vb > .net) translations? > > > > At presently I am looking to find a translation for the FUNCTON > > "String" which takes 2 arguments to create a string with X occurances > > of Y: Old VB = String(5,"A") . This returns a string of "AAAAA". > > All web searches to date either take me down the path of -string as > > varibale- or -string as an object- to be parsed. > > Comments? > > Thanks > > bartj OR
Dim tString as New String("A", 5) Which is the same thing. Israel GhostInAK wrote: Show quoteHide quote > Hello bar***@gmail.com, > > String (As your 'useless' MSDN documentation points out) as objects.. Objects > have ctors.. > An abundance of information is NEVER a Bad Thing. > > Dim tString as String = New String("A", 5) > > -Boo > > > Hello, > > I am a vb (classic vb5/vb6) programmer who is getting his feet wet > > with > > .net. > > I have been attempting to use various old vb functions and tweek them > > as required to get thme to run under .net. In many cases I was > > pleasently surprised by how easy it was, and in other cases I have had > > to do searches on the net as the local help is nearly worthless(too > > much information that I dont need). > > > > Can anyone recommend a place on the web where there is a good table of > > equlivent(vb > .net) translations? > > > > At presently I am looking to find a translation for the FUNCTON > > "String" which takes 2 arguments to create a string with X occurances > > of Y: Old VB = String(5,"A") . This returns a string of "AAAAA". > > All web searches to date either take me down the path of -string as > > varibale- or -string as an object- to be parsed. > > Comments? > > Thanks > > bartj Hello Izzy,
Yes.. But I tend to view ctors (especially parameterized ctors) as object initializers.. so I like to make the distinction between object instantiation and object initialization. -Boo Show quoteHide quote > OR > > Dim tString as New String("A", 5) > > Which is the same thing. > > Israel > > GhostInAK wrote: > >> Hello bar***@gmail.com, >> >> String (As your 'useless' MSDN documentation points out) as objects.. >> Objects >> have ctors.. >> An abundance of information is NEVER a Bad Thing. >> Dim tString as String = New String("A", 5) >> >> -Boo >> >>> Hello, >>> I am a vb (classic vb5/vb6) programmer who is getting his feet wet >>> with >>> .net. >>> I have been attempting to use various old vb functions and tweek >>> them >>> as required to get thme to run under .net. In many cases I was >>> pleasently surprised by how easy it was, and in other cases I have >>> had >>> to do searches on the net as the local help is nearly worthless(too >>> much information that I dont need). >>> Can anyone recommend a place on the web where there is a good table >>> of equlivent(vb > .net) translations? >>> >>> At presently I am looking to find a translation for the FUNCTON >>> "String" which takes 2 arguments to create a string with X >>> occurances >>> of Y: Old VB = String(5,"A") . This returns a string of "AAAAA". >>> All web searches to date either take me down the path of -string as >>> varibale- or -string as an object- to be parsed. >>> Comments? >>> Thanks >>> bartj <bar***@gmail.com> schrieb:
> At presently I am looking to find a translation for the FUNCTON Method 'StrDup' or the 'String' constructor.> "String" which takes 2 arguments to create a string with X occurances > of Y: Old VB = String(5,"A") . This returns a string of "AAAAA". -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> <bar***@gmail.com> wrote in message
Show quoteHide quote news:1159556321.109238.286630@i42g2000cwa.googlegroups.com... I too, am still interested in "bartj1" question':> Hello, > I am a vb (classic vb5/vb6) programmer who is getting his feet wet with > .net. > > I have been attempting to use various old vb functions and tweek them > as required to get thme to run under .net. In many cases I was > pleasently surprised by how easy it was, and in other cases I have had > to do searches on the net as the local help is nearly worthless(too > much information that I dont need). > > Can anyone recommend a place on the web where there is a good table of > equlivent(vb > .net) translations? > > At presently I am looking to find a translation for the FUNCTON > "String" which takes 2 arguments to create a string with X occurances > of Y: Old VB = String(5,"A") . This returns a string of "AAAAA". > All web searches to date either take me down the path of -string as > varibale- or -string as an object- to be parsed. > > Comments? > Thanks > bartj > "Can anyone recommend a place on the web where there is a good table of equlivent(vb > .net) translations?" This would be most useful to many programmers.
String -> StringBuilder Optimization
Create new "me" Think BEFORE you post. What in the world is my prof trying to say? Dealing with MsgBox listbox drop style Two Pass Update - best way? vb.net 2003 Data Wizard Form How to figure this one out - "The isnull function requires 2 argument(s)" UserControl(?) Question how to find specific date? |
|||||||||||||||||||||||