By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,320 Members | 2,239 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,320 IT Pros & Developers. It's quick & easy.

convert to VB

P: n/a
TJS
I cannot seem to get this to convert to VB.
tried the converter at asp-alliance but it throws an error on line marked

I tried the kamapatel converter, which did not throw an error, but the
result did not compile

any experts available ?

===== code ====
.....
protected override AddInForm CreateAddInForm() {
String sDocumentName = base.Document.DocumentName;
String sDocumentPath = base.Document.DocumentPath;
ProjectItemStreamMode iMode = (ProjectItemStreamMode)0;
//<==converter_chokes_here
Stream sDocumentStream = base.Document.ProjectItem.GetStream(iMode);
return new MyFirstAddInForm(this, sDocumentPath, sDocumentName,
sDocumentStream);
}
.....
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Protected overloads Function CreateAddInForm() as AddInForm
Dim sDocumentName As String = base.Document.DocumentName
Dim sDocumentPath As String = base.Document.DocumentPath
Dim iMode As ProjectItemStreamMode = ctype(0,ProjectItemStreamMode)
Dim sDocumentStream As Stream =
base.Document.ProjectItem.GetStream(iMode)
return new MyFirstAddInForm(Me, sDocumentPath, sDocumentName,
sDocumentStream)
End Function

Not tested but grammatically correct

Bismark

"TJS" <no****@here.com> a écrit dans le message de
news:%2***************@TK2MSFTNGP11.phx.gbl...
I cannot seem to get this to convert to VB.
tried the converter at asp-alliance but it throws an error on line marked

I tried the kamapatel converter, which did not throw an error, but the
result did not compile

any experts available ?

===== code ====
....
protected override AddInForm CreateAddInForm() {
String sDocumentName = base.Document.DocumentName;
String sDocumentPath = base.Document.DocumentPath;
ProjectItemStreamMode iMode = (ProjectItemStreamMode)0;
//<==converter_chokes_here
Stream sDocumentStream = base.Document.ProjectItem.GetStream(iMode);
return new MyFirstAddInForm(this, sDocumentPath, sDocumentName,
sDocumentStream);
}
....

Nov 20 '05 #2

P: n/a
TJS
that works !

thanks

"Bismark Prods" <tr*******@vtxnet.ch> wrote in message
news:c6**********@newshispeed.ch...
Protected overloads Function CreateAddInForm() as AddInForm
Dim sDocumentName As String = base.Document.DocumentName
Dim sDocumentPath As String = base.Document.DocumentPath
Dim iMode As ProjectItemStreamMode = ctype(0,ProjectItemStreamMode)
Dim sDocumentStream As Stream =
base.Document.ProjectItem.GetStream(iMode)
return new MyFirstAddInForm(Me, sDocumentPath, sDocumentName,
sDocumentStream)
End Function

Not tested but grammatically correct

Bismark

"TJS" <no****@here.com> a écrit dans le message de
news:%2***************@TK2MSFTNGP11.phx.gbl...
I cannot seem to get this to convert to VB.
tried the converter at asp-alliance but it throws an error on line marked
I tried the kamapatel converter, which did not throw an error, but the
result did not compile

any experts available ?

===== code ====
....
protected override AddInForm CreateAddInForm() {
String sDocumentName = base.Document.DocumentName;
String sDocumentPath = base.Document.DocumentPath;
ProjectItemStreamMode iMode = (ProjectItemStreamMode)0;
//<==converter_chokes_here
Stream sDocumentStream = base.Document.ProjectItem.GetStream(iMode);
return new MyFirstAddInForm(this, sDocumentPath, sDocumentName,
sDocumentStream);
}
....


Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.