Click here to Skip to main content
15,888,461 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: icon help Pin
Pablo.ar8-Dec-04 16:14
Pablo.ar8-Dec-04 16:14 
GeneralRe: icon help Pin
WartHog0009-Dec-04 9:34
WartHog0009-Dec-04 9:34 
GeneralIcon -> Cursor conversion Pin
TAlvord8-Dec-04 13:07
TAlvord8-Dec-04 13:07 
GeneralRe: Icon -> Cursor conversion Pin
Pablo.ar8-Dec-04 16:12
Pablo.ar8-Dec-04 16:12 
GeneralRe: Icon -> Cursor conversion Pin
Mario Zafonte9-Mar-24 22:53
Mario Zafonte9-Mar-24 22:53 
GeneralValue in a Datagrid Cell Pin
bexarcounty8-Dec-04 12:34
bexarcounty8-Dec-04 12:34 
GeneralRe: Value in a Datagrid Cell Pin
Jim Matthews9-Dec-04 3:10
Jim Matthews9-Dec-04 3:10 
GeneralArray problem Pin
Jason Weibel8-Dec-04 11:49
Jason Weibel8-Dec-04 11:49 
I have an input property class I want to validate. Any part that fails the validation should trigger a function which will add the property class to an array of that class with a description of the error. The problem is that each time the description is updated the entire array is changed. Has anyone run into this issue before and how can it be fixed. Here is a sample of my code.
<br />
Friend Function LineCheck(ByVal LineIn As Line) As Line()<br />
    Dim LineOut() As Line<br />
    If LineIn.Field1 = "" Then LineOut = AddError(LineIn, "Field1 Blank", LineOut)<br />
    If LineIn.Field2 = "" Then LineOut = AddError(LineIn, "Field2 Blank", LineOut)<br />
    If LineIn.Field3 = "" Then LineOut = AddError(LineIn, "Field3 Blank", LineOut)<br />
    If LineIn.Field4 = "" Then LineOut = AddError(LineIn, "Field4 Blank", LineOut)<br />
    Return LineOut<br />
End Function<br />
<br />
Friend Function AddError(ByVal LineIn As Line, ByVal LineError As String, ByVal LineOut() As Line) As Line()<br />
    Dim tmp As New Line<br />
    tmp = LineIn<br />
    tmp.LineError = LineError<br />
    If Not LineOut Is Nothing Then ReDim Preserve LineOut(LineOut.Length) Else ReDim Preserve LineOut(0)<br />
    LineOut(LineOut.Length - 1) = New Line<br />
    LineOut(LineOut.Length - 1) = tmp<br />
    Return LineOut<br />
End Function<br />

Thank you,

Jason W.
GeneralRe: Array problem Pin
Dave Kreskowiak9-Dec-04 3:24
mveDave Kreskowiak9-Dec-04 3:24 
GeneralConverting hex data to ascii using vb.net Pin
Member 15285688-Dec-04 11:03
Member 15285688-Dec-04 11:03 
GeneralRe: Converting hex data to ascii using vb.net Pin
Dave Kreskowiak9-Dec-04 0:55
mveDave Kreskowiak9-Dec-04 0:55 
Generaldb grid col width Pin
Paps28-Dec-04 10:08
Paps28-Dec-04 10:08 
GeneralRe: db grid col width Pin
Jim Matthews8-Dec-04 10:36
Jim Matthews8-Dec-04 10:36 
GeneralRe: db grid col width Pin
Paps28-Dec-04 10:54
Paps28-Dec-04 10:54 
GeneralRe: db grid col width Pin
Paps28-Dec-04 11:05
Paps28-Dec-04 11:05 
GeneralRe: db grid col width Pin
Jim Matthews9-Dec-04 2:48
Jim Matthews9-Dec-04 2:48 
GeneralRe: db grid col width Pin
Jim Matthews9-Dec-04 8:25
Jim Matthews9-Dec-04 8:25 
QuestionReturn value from modal dialog? Pin
TAlvord8-Dec-04 10:03
TAlvord8-Dec-04 10:03 
AnswerRe: Return value from modal dialog? Pin
TAlvord10-Dec-04 9:57
TAlvord10-Dec-04 9:57 
Generalpassing variables between windows forms Pin
mpiotro8-Dec-04 8:51
mpiotro8-Dec-04 8:51 
GeneralRe: passing variables between windows forms Pin
Pablo.ar8-Dec-04 9:04
Pablo.ar8-Dec-04 9:04 
GeneralRe: passing variables between windows forms Pin
mpiotro8-Dec-04 9:14
mpiotro8-Dec-04 9:14 
GeneralRe: passing variables between windows forms Pin
Dave Kreskowiak8-Dec-04 10:28
mveDave Kreskowiak8-Dec-04 10:28 
GeneralRe: passing variables between windows forms Pin
Jim Matthews8-Dec-04 10:14
Jim Matthews8-Dec-04 10:14 
GeneralRe: passing variables between windows forms Pin
Pablo.ar8-Dec-04 14:20
Pablo.ar8-Dec-04 14:20 

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.