Click here to Skip to main content
15,911,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to interpret Local Languages in Visual Basic 6 Pin
Dave Kreskowiak7-Oct-09 1:37
mveDave Kreskowiak7-Oct-09 1:37 
QuestionRead Data from EXcel Based on Conditions to Dataset Pin
Dambod6-Oct-09 20:03
Dambod6-Oct-09 20:03 
AnswerRe: Read Data from EXcel Based on Conditions to Dataset Pin
Rajesh Anuhya6-Oct-09 21:15
professionalRajesh Anuhya6-Oct-09 21:15 
QuestionEvent and delegate from C# to VB.NET Pin
sri_00996-Oct-09 18:48
sri_00996-Oct-09 18:48 
AnswerRe: Event and delegate from C# to VB.NET Pin
Christian Graus6-Oct-09 22:10
protectorChristian Graus6-Oct-09 22:10 
AnswerRe: Event and delegate from C# to VB.NET Pin
N a v a n e e t h6-Oct-09 22:27
N a v a n e e t h6-Oct-09 22:27 
GeneralRe: Event and delegate from C# to VB.NET Pin
sri_00997-Oct-09 0:33
sri_00997-Oct-09 0:33 
Questionvb equivalent to c# Pin
uglyeyes6-Oct-09 18:42
uglyeyes6-Oct-09 18:42 
Hi whats the equivalent to below code in vb.net

string culture = ((((Range)_ws.Cells[2, (int)ExcelColumnIndexEnum.CultureColumn]).Value2 != null) ?
((Range)_ws.Cells[2, (int)ExcelColumnIndexEnum.CultureColumn]).Value2.ToString().Trim() : string.Empty);

I tried to convert using a tool available in developerfusion that gives me

Dim culture As String = (If((DirectCast(_ws.Cells(2, CInt(ExcelColumnIndexEnum.CultureColumn)), Range).Value2 IsNot Nothing), DirectCast(_ws.Cells(2, CInt(ExcelColumnIndexEnum.CultureColumn)), Range).Value2.ToString().Trim(), String.Empty))

but when i paste in vb editor it shows error.

ExcelColumnIndexEnum is an enum and codes are as.

Imports System
Imports System.Collections.Generic
Imports System.Text

Public Enum ExcelColumnIndexEnum As Integer
CultureColumn = 1
OtherColumn=2
...
End Enum

please help
AnswerRe: vb equivalent to c# Pin
Christian Graus6-Oct-09 22:09
protectorChristian Graus6-Oct-09 22:09 
GeneralRe: vb equivalent to c# Pin
EliottA7-Oct-09 2:12
EliottA7-Oct-09 2:12 
QuestionCatch printing any document from any application (word, excel, pdf,...) to show printing options Pin
edmonson6-Oct-09 3:55
edmonson6-Oct-09 3:55 
AnswerRe: Catch printing any document from any application (word, excel, pdf,...) to show printing options Pin
Dave Kreskowiak6-Oct-09 4:11
mveDave Kreskowiak6-Oct-09 4:11 
AnswerRe: Catch printing any document from any application (word, excel, pdf,...) to show printing options Pin
Henry Minute6-Oct-09 4:24
Henry Minute6-Oct-09 4:24 
AnswerRe: Catch printing any document from any application (word, excel, pdf,...) to show printing options Pin
Steven J Jowett6-Oct-09 9:59
Steven J Jowett6-Oct-09 9:59 
QuestionDoes binding in design time automatically updating the field in the table in dataset? Pin
JUNEYT6-Oct-09 3:54
JUNEYT6-Oct-09 3:54 
AnswerRe: Does binding in design time automatically updating the field in the table in dataset? Pin
Dave Kreskowiak6-Oct-09 8:02
mveDave Kreskowiak6-Oct-09 8:02 
QuestionScriptlet control Pin
mmusha6-Oct-09 1:11
mmusha6-Oct-09 1:11 
AnswerRe: Scriptlet control Pin
Dave Kreskowiak6-Oct-09 4:04
mveDave Kreskowiak6-Oct-09 4:04 
GeneralRe: Scriptlet control Pin
mmusha6-Oct-09 21:03
mmusha6-Oct-09 21:03 
AnswerRe: Scriptlet control Pin
The Man from U.N.C.L.E.6-Oct-09 4:12
The Man from U.N.C.L.E.6-Oct-09 4:12 
QuestionWinform UploadFile to Upload.aspx page (VB.Net 2005) Pin
S.Dhanasekaran6-Oct-09 0:00
S.Dhanasekaran6-Oct-09 0:00 
AnswerRe: Winform UploadFile to Upload.aspx page (VB.Net 2005) Pin
Christian Graus6-Oct-09 0:12
protectorChristian Graus6-Oct-09 0:12 
Questionout prameter to store procedure in vb.net Pin
paya1pa5-Oct-09 22:06
paya1pa5-Oct-09 22:06 
AnswerRe: out prameter to store procedure in vb.net Pin
εїзεїзεїз5-Oct-09 23:44
εїзεїзεїз5-Oct-09 23:44 
GeneralRe: out prameter to store procedure in vb.net Pin
Christian Graus5-Oct-09 23:58
protectorChristian Graus5-Oct-09 23:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.