Can not Get Loop to Work


Author
Message
Terry Bottorff
Terry Bottorff
Advanced StrataFrame User (766 reputation)Advanced StrataFrame User (766 reputation)Advanced StrataFrame User (766 reputation)Advanced StrataFrame User (766 reputation)Advanced StrataFrame User (766 reputation)Advanced StrataFrame User (766 reputation)Advanced StrataFrame User (766 reputation)Advanced StrataFrame User (766 reputation)Advanced StrataFrame User (766 reputation)
Group: Forum Members
Posts: 448, Visits: 12K
What am I missing? I tried the following code:

        'For Each lobo As ResultsPerfsChecksRoughStockBO In Me.ResultsPerfsChecksRoughStockBO1.GetEnumerable
        '    cword = DecimalToText.ConvertDecimalToText(Me.ResultsPerfsChecksRoughStockBO1.netcheck)
        '    Me.ResultsPerfsChecksRoughStockBO1.amountinwords = cword
        '    y += 1
        'Next

        ' Could Not Get the Above to Work because it would only do the First Record. So I put the following in
        MessageBox.Show(Me.ResultsPerfsChecksRoughStockBO1.Sort)
        MessageBox.Show(Me.ResultsPerfsChecksRoughStockBO1.Filter)
        MessageBox.Show(Me.ResultsPerfsChecksRoughStockBO1.Count.ToString())

The First two messageboxes show nothing and the last one shows 10 which is correct. So I tried the following code and it only does the first record also?????

               If Me.ResultsPerfsChecksRoughStockBO1.MoveFirst() Then
            ' Loop Thru All Records Making Sure NetCheck is Correct and Getting Words for Netcheck
            
            Do
                nnet = Me.ResultsPerfsChecksRoughStockBO1.checkamt + Me.ResultsPerfsChecksRoughStockBO1.groundmoney -  Me.ResultsPerfsChecksRoughStockBO1.tax
                cword = DecimalToText.ConvertDecimalToText(Me.ResultsPerfsChecksRoughStockBO1.netcheck)
                Me.ResultsPerfsChecksRoughStockBO1.amountinwords = cword
                nnet = 0.0
            Loop While Me.ResultsPerfsChecksRoughStockBO1.MoveNext()
        End If

I just can not see the trees for the forest. I know it has to be something weird I am doing but I don't know what it is. Any help would be appreciated. TIA.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search