Microsoft Dynamics Job Openings


Microsoft Dynamics Forums Homepage

Forum Home Forum Home > Microsoft Dynamics SL (Solomon) > SL - Customization and Integration
  New Posts New Posts RSS Feed - How to loop thru SAFGrid rows?
  FAQ FAQ  Forum Search   Register Register  Login Login


How to loop thru SAFGrid rows?

 Post Reply Post Reply
Author
Message
trahaim View Drop Down
MicrosoftDynamicsForums.com Member
MicrosoftDynamicsForums.com Member


Joined: October 06 2006
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote trahaim Quote  Post ReplyReply Direct Link To This Post Topic: How to loop thru SAFGrid rows?
    Posted: October 13 2006 at 10:26am
How do you loop through the rows in a SAFGrid control? A code example would be greatly appreciated. I have a vbtools form with a header and detail section connect to custom tables. I want to process each rec in the SAFGrid control. I understand how to processs the info in bTableName but this is only for the current row and I need to loop through each row.
trahaim
Back to Top
Sponsored Links


Back to Top
A.Leo View Drop Down
MicrosoftDynamicsForums.com Member
MicrosoftDynamicsForums.com Member


Joined: October 04 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote A.Leo Quote  Post ReplyReply Direct Link To This Post Posted: October 31 2006 at 8:47pm

Hi

FOllowing is the example for loop thro' grid

Dim iretval As Integer
Dim iMaintFlg As Integer

'Mem_handle is SAFGrid handle you must delare in form load

iretval = mfirst(Mem_handle, iMaintFlg)
While iretval = 0

    {your process}

   iretval = mnext(Mem_handle, iMaintFlg)

Wend

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down


Copyright 2013 microsoftdynamicsforums.com. All rights reserved. MicrosoftDynamicsForums.com is an independent non-Microsoft website.
Email: contact AT microsoftdynamicsforums DOT com