form?

subrata.baurisubrata.bauri Member Posts: 21
Hi ara3n,


I want to create a form such that the form will have 2 controls, one is text box and another one is command button.

I want to write code into the command button such that when some one click the command button the text will show the Customer Name orderly from the Customer Table(ID 18).

I have do the avobe problem with the help of " WITH DO"Statement
But I want same thing with the help of FOR LOOP.

how can I do?

Thenk u

Comments

  • ara3nara3n Member Posts: 9,256
    I'm sure there are other people in this forum who can answer this as well.
    I would suggest looking at the developer manuals and study the pdf documents. The with do and for loop can be found in most programming langauges.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • HalMdyHalMdy Member Posts: 429
    As ara3n said, see the programming manual for details.

    But note this : WITH is not a loop statement, it's only a kind of shortcut for lazzy programmer :? ... Try to work without this statement, your code will be better readable for you and the others ... (but it's a "philosophic" point of view).
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Looking at the posting dates it is almost a non-issue but you can make several loops in Navision
    REPEAT
    
    UNTIL
    
    FOR x = 1 to 10 DO BEGIN
    
    END
    
    WHILE x = VALUE DO BEGIN
    
    END
    
Sign In or Register to comment.