Jump to content
Fivewin Brasil

como listar todas as variaveis de um prg ?


edmandc

Recommended Posts

Boa tarde

Verifique a \fivewin\source\function\errsysw.prg.

   cErrorLog := ""
   cErrorLog += CRLF + "Variaveis em uso" + CRLF + "================" + CRLF
   cErrorLog += "   Procedure     Type   Value" + CRLF
   cErrorLog += "   ==========================" + CRLF

   i := 2    // we don't disscard any info again !
   while ( i < 74 )

       if ! Empty( ProcName( i ) )
          cErrorLog += "   " + Trim( ProcName( i ) ) + CRLF
          for j = 1 to ParamCount( i )
             cErrorLog += "     Param " + Str( j, 3 ) + ":    " + ;
                          ValType( GetParam( i, j ) ) + ;
                          "    " + cGetInfo( GetParam( i, j ) ) + CRLF
          next
          for j = 1 to LocalCount( i )
             cErrorLog += "     Local " + Str( j, 3 ) + ":    " + ;
                          ValType( GetLocal( i, j ) ) + ;
                          "    " + cGetInfo( GetLocal( i, j ) ) + CRLF
          next
       endif

       i++
   end

 

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...