Announcement

Collapse
No announcement yet.

A Question about convert c to pb

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A Question about convert c to pb

    All,

    How to convert "for(i=0;i<nFrameWnd && i< nSize;i++)" to PB?

  • #2
    >for(i=0;i<nFrameWnd && i< nSize;i++)" to PB?
    ==>
    Code:
    i    =  0
    WHILE (i < nFrameWnd ) AND (i < nSize)
    
     --------------------------------
     --- Code which follows above ---
     --------------------------------
    
     INCR  i
    WEND
    ... or equal using 'DO..LOOP' or 'FOR..NEXT (w/forced exit)'
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Thank you!

      Comment


      • #4
        For i = 0 To Min( nFrameWnd, nSize )
        Next
        hellobasic

        Comment


        • #5
          But Edwin, showing it the 'long' way shows how I did it.. eg how "&&" means "logical and" and "i++" means 'increment.'

          (And I *did* leave the door open to "or Equal" , no?)

          Give a man a fish, he eats today; teach a man to fish... you get his wife mad at you.
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            Michael
            Would you check the mail from [email protected] in your E-Mail?
            I had post mail about DockWnd code of C++ many time.

            Comment


            • #7
              >at this time, nothing here.

              I guess the Glorious Party Censor hasn't finished with it yet.
              Michael Mattias
              Tal Systems (retired)
              Port Washington WI USA
              [email protected]
              http://www.talsystems.com

              Comment

              Working...
              X