hexagon logo

probes used in program

Hi friends Could any one help me,

Is there any way to find out how many probe file used in a particular program? other than look into the program line by line.


Sekhar.
Parents
  • Or write a script looping through the commands checking if a command is a load probe command


    dim pcapp as object
    set pcapp = crretaeobject("pcdlrn.application")
    dim pprog as object
    set pprog=pcapp.activepartprogram
    
    dim cmd as object
    dim cmds as object
    set cmds=pprog.commands
    
    for each cmd in cmds
    if cmd.isloadprobe then
    
    'do something here with the information
    
    msgbox(cmd.id)
    
    end if
    next cmd
    
    set cmds=nothing
    set pprog=nothing
    set pcapp=nothing
    



    That's not been tested by the way it was typed in from memory so there might be typos / slight syntax errors but it demonstrated the right approach.
Reply
  • Or write a script looping through the commands checking if a command is a load probe command


    dim pcapp as object
    set pcapp = crretaeobject("pcdlrn.application")
    dim pprog as object
    set pprog=pcapp.activepartprogram
    
    dim cmd as object
    dim cmds as object
    set cmds=pprog.commands
    
    for each cmd in cmds
    if cmd.isloadprobe then
    
    'do something here with the information
    
    msgbox(cmd.id)
    
    end if
    next cmd
    
    set cmds=nothing
    set pprog=nothing
    set pcapp=nothing
    



    That's not been tested by the way it was typed in from memory so there might be typos / slight syntax errors but it demonstrated the right approach.
Children
No Data