Scan_to_disk replacement function for nidaqmx.h

Hello,
     We are upgrading an old card to a PCI NI 6224 or 6225.  The old project was developed in C++ and used the nidaq.h header.  The new development will also be done using C++. 
1)  Is there any documentation on how to use the nidaqmx.h file in C++?  If you could point me to it that would be great.
2)  Using C++ as our base, would it be possible to use two 6224 cards instead of the 6225?  Is it still possible to synchronize the cards?
3)
I need to replace the old function Scan_to_disk with something that
will do the same thing in the nidaqmx driver.  Is this function still
realisable?  Is there a procedure out there somewhere?
Thanks

Sparckis,
To help answer your questions.....
1)  Is there any documentation on how to use the nidaqmx.h file in C++?  If you could point me to it that would be great.
Using NI-DAQmx in Text Based Programming Environments
For further information about using the functions in the DAQmx API, please refer to the NI-DAQmx C Reference Help located in the Windows start menu:
Start » Programs » National Instruments » NI-DAQ
2)  Using C++ as our base, would it be possible to use two 6224 cards instead of the 6225?  Is it still possible to synchronize the cards?
Yes, you can use two cards in C++, you will just have separate tasks for each as you would in any language.  They can be synchronized by use of a RTSI cable.
3) I need to replace the old function Scan_to_disk with something that will do the same thing in the nidaqmx driver.  Is this function still realisable?  Is there a procedure out there somewhere?
Old Forum on Issue
What are the Terminology Changes in NI-DAQmx?
Alex A.
Applications Engineer

Similar Messages

  • Does Logic Pro X include replacement functionality for Compressor, Soundtrack Pro and Waveburner from Logic Studio 9?

    Does Logic Pro X include replacement functionality for Compressor, Soundtrack Pro and Waveburner from Logic Studio 9?

    No..  You can buy the Compressor (along with Mainstage) via the App Store as a separate download but STP and Waveburner are discontinued products. Some of STP's functionality can now be found in Final Cut Pro X...
    Note: Mainstage, Compressor, Waveburner and STP were part of the full version of Logic Studio 2.0 (which also included Logic Pro 9 ) and sold for $999 compared to Logic Pro X which retails at $200...
    The Apple loops/Jam packs that came as part of Logic Studio 2.0 now come free with Logic Pro X (and did so with the Appe store version of Logic Pro 9) .. as part of the additional downlaod

  • Replace function for HTML tags

    Hie Guys,
    I would like to get rid of the HTML tags from a column/object in my report using the "Replace" function. Basically, I want to replace whatever the content is between "<" & ">" i.e. the opening and closing tags. I know I can use the "Pos" function to identify the position of "<" & ">", but I am not sure exactly how to achieve this in Webi. FYI -  "Read content as HTML" & "Read content as Hyperlink" did not resolve the issue. Can anyone please help? Thanks.

    Hi Jeewan,
    It will be very tedious to do this at Webi level.
    I have tried below example. It might help you to work around your issue; however, not completely:
    1. Created an Excel and inserted single value in first column as:
    <html><b>this is yuvraj</b></html>
    2. Used it as source and created a Webi report in Rich client.
    3. Applied SubStr recursively using Pos function and created below variables:
    test : =Substr([column_1]; Pos([column_1];">")+1;Length([column_1]))
    test1: =Substr([test]; Pos([test];">")+1;Length([test]))
    test2 : =Substr([test1]; 0;Pos([test1];"<")-1)
    The output has been attached.

  • Search/replace function for Lightroom?

    I am trying to find out if there is a way of finding and replacing certain text in the metadata in a quick and easy way. I need to change something on all my photos in LR. Can anyone help me? Thanks a lot in advance.

    Rob,
    Thanks for response.
    I understand that Lightroom has a  SDK for plugins and this is a really good thing as it does allows others to tweak and enhance functionality without relying on Adobe. I have been a user of Lightroom  since the very first user trials and think it is a great product. I have watched it develop over the last 5 or 6 years.
    I do think it is more than just an image editor. Lightroom has always been promoted since day one as a new and better image database and workflow management tool. It is for this reason that question why Adobe has not closed some (I think) gaps in functionality consistent with Lightroom fullfilling its purpose as an Image library/Database management tool. It has certainly had the search capabilities included since day one of all metadata, consistent with a management tool.
    For the work I have been doing lately, Search and replace would be useful as I have been cleaning up metadata in various libraries. Hence while I agree it is not used every day, it would be a very useful maintenance tool.
    I thought I had posted this originally as a response to a similra request in the Lightroom Feature request forum, apparently not. I did try (today) to start a new feature request  but I was blocked from starting new threads in that sub-forum. Hopefully someone else with access to that forum will pick up on this and transfer the request to the Feature Request forum.

  • Replace function for CLOB

    I have CLOB column and want to do a select with a replace kind of function- replacing certain characters. E.g. if body is a CLOB field, I need
    select Clobreplace(body,'abcdef','123456') from t1;
    Does anyone have a function or equivalent to do this?
    Thanks

    There isn't one readymade. However, it would be relatively simple to write one yourself. You would need to iterate around the input clob doing the following:[list]
    [*]use DBMS_LOB.INSTR to locate occurances of the token;
    [*]use DBMS_LOB.SUBSTR to segment your input CLOB using the offset from the INSTR call;
    [*]write each segment appended with the replacement string to a temporary LOB;
    [*]return the temporary LOB
    [list]
    I suggest you have a play around with the logic of this using SQL SUBSTR and INSTR on a varchar2 string. Once you understand what you're doing you can introduce the complication of operating on a CLOB.
    Good luck, APC

  • Replace function for changing file endings

    Hello,
    I would like to replace the following file endings into *.TRC:
    my_first.ERR
    my_second.err
    my_third.ERR
    my_fourth.ERR
    my_fifth.err
    But, I am getting the following:
    my_first.TRC
    my_second.err
    my_third.TRC
    my_fourth.TRC
    my_fifth.err
    My sql statement
    update errorlog a
    set (err_file) =
    (select replace(err_file,'.ERR','.TRC')
    from errorlog b
    where a.err_id = b.err_id);
    The compiler does not like the follwing sql statement.
    I am getting an ORA-00907: ... Error.
    update errorlog a
    set (UPPER(err_file)) =
    (select replace(err_file,'.ERR','.TRC')
    from errorlog b
    where a.err_id = b.err_id);
    Does anybody have an idea?
    Best regards,
    Tom Rakete

    or something like.
    SQL> select * from errorlog;
    ERR_FILE
    my_first.ERR
    my_second.err
    my_third.ERR
    my_fourth.ERR
    my_fifth.err
    my_first.log
    6 rows selected.
    SQL> update errorlog
      2     set err_file = decode(substr(err_file,instr(err_file,'.',-1)),
      3                             '.err',substr(err_file,1,instr(err_file,'.',-1))||'TRC',
      4                             '.ERR',substr(err_file,1,instr(err_file,'.',-1))||'TRC',
      5                                    err_file);
    6 rows updated.
    SQL> select * from errorlog;
    ERR_FILE
    my_first.TRC
    my_second.TRC
    my_third.TRC
    my_fourth.TRC
    my_fifth.TRC
    my_first.log
    6 rows selected.
    SQL>

  • Bulk Replacements using Replace function in oracle 8i

    Hi All,
    Iam using oracle 8i version and i need to use Replace function for bulf replacements i mean i need to replace around 250 rows. So please anyone suggest me how to proceed
    on this request as iam using oracle 8i version.
    Thanks!
    Srini

    Write one update statement.
    The where condition is the filter what rows need to be touched.
    The SET condition will do the data change. For example it could use the REPLACE function if that is what it is needed.
    One single update statement over 20 rows would mean the task is done in BULK. 20 single updates that each handle one row would mean it is row by row = slow by slow processing.

  • Replace function in JDeveloper 3.2

    Hi JDev Team:
    Are there any global replace functions in JDev 3.2, for instance I have one word, say 'aaaa', in all of my projct files, .jsp, .java, .... I like to replace with 'bbbb'.
    Thanks

    The JDeveloper Editor provides Search & Replace functionality for files.
    What I typically do is
    Select menu: Search | Search Source Path...
    Enter Search String and Change Source path
    and other fields and press Start
    Then the Navigator displays a Search tab which lists all files with the matching string.
    Double click on first file in navigator and
    select menu Search | Replace
    In this dialog enter your search, replace, and other options-
    In the Options, If you do not want to be prompted, do not check the Prompt on replace option.
    Select the Scope of Global
    Selectg the Origin of Entire
    When you are ready press the Multiple button to make multiple replacements.
    When you are done with this file,
    Press Ctrl-S to Save the file
    Press Ctrl-F4 to close the window
    Double click on the Next File
    Press Ctrl-R to invoke the Search | Replace dialog.
    You should not need to change any options.
    Press Alt-M to select the Multiple Button!
    While this may seem more complex then a simple Sed / Perl / Python script, it is more controllable, flexible and user friendly.
    Besides, you may learn a few JDeveloper tricks.
    Good Luck,
    -John

  • Replace Function on CLOB

    Hi all, i am new to this forum and i hope everyone is doing great.
    I have a question on CLOB objects.
    I am working on Oracle 8i and i have CLOB object coming from DB2 data base.
    Can i apply Replace or Translate function on CLOB data? Because i have special characters like %$^@#. I want to replace all these.
    Can anyone help me .
    Thanks in Advance.

    Hi
    This article uses DBMS_LOB to mimic the standard replace function for a CLOB. It's for 9i but it may be worth a try to see if it will work on 8i too.
    http://www.astral-consultancy.co.uk/cgi-bin/hunbug/doco.cgi?11080
    Hope this helps

  • Search & Replace function in Files?

    Does there exist a "Search & Replace String" function for Files IO? ...preferable RandomAccessFile.
    Or do I have to make my own parser from scratch.
    Anyone know of free code that exists somewhere? This seems like a function that someone must have made at least or has a use for.
    Thanks for any! :)
    rasmasyean

    The JDeveloper Editor provides Search & Replace functionality for files.
    What I typically do is
    Select menu: Search | Search Source Path...
    Enter Search String and Change Source path
    and other fields and press Start
    Then the Navigator displays a Search tab which lists all files with the matching string.
    Double click on first file in navigator and
    select menu Search | Replace
    In this dialog enter your search, replace, and other options-
    In the Options, If you do not want to be prompted, do not check the Prompt on replace option.
    Select the Scope of Global
    Selectg the Origin of Entire
    When you are ready press the Multiple button to make multiple replacements.
    When you are done with this file,
    Press Ctrl-S to Save the file
    Press Ctrl-F4 to close the window
    Double click on the Next File
    Press Ctrl-R to invoke the Search | Replace dialog.
    You should not need to change any options.
    Press Alt-M to select the Multiple Button!
    While this may seem more complex then a simple Sed / Perl / Python script, it is more controllable, flexible and user friendly.
    Besides, you may learn a few JDeveloper tricks.
    Good Luck,
    -John

  • Replace function not working for XML CLOB data

    Hi all,
    I am generating XML using DBMS_XMLGEN in oracle 10g. After generating the XML, I am replacing the ROW tags with appropriate tag name using REPLACE function. Sometimes the tag name is not replaced correctly.
    Eg.I am replacing </Cargo_ROW> with </CargoDetail>. But sometimes in one xml, this tag is coming as </CargoDetROW> or </CargoDetaiW>. The XML size is always huge and the same tag is repeated so many time in the loop and in the same XML, only one tag will be replaced incorrectly. This also not happening for all XMLs.
    If any one knows the cause about this problem or solution, please share the same.
    thanks,

    Yes Anton, you are right..
    It was typecasting problem
    replace supports clob
    Check this out
    SQL> declare
      2  xmldata clob;
      3  Begin
      4  xmldata:='<Message transaction_log_id="" extraction_date="25/11/09 09:52:03 AM" versio
      5  <Transaction>
      6  <TransactionType>ORIGINAL</TransactionType>
      7  <ControlNumber>60022449779</ControlNumber>
      8  <BookingHeader>
      9  <PortCodeOriginal>GBSOU</PortCodeOriginal>
    10  <Contact>.</Contact>
    11  <PhoneContact>.</PhoneContact>
    12  </BookingHeader>
    13  <PartyInformation>
    14  <PartyDetails>
    15  <PartyId>10002866</PartyId>
    16  <Type>SHIP</Type>
    17  <Name1>L LTD.</Name1>
    18  </PartyDetails>
    19  </PartyInformation>
    20  <Cargo>
    21  <CargoDetROW>
    22  <CargoHeader>
    23  <CargoReceivedSeqNo>600015391790</CargoReceivedSeqNo>
    24  <CargoId>RW9330P013948</CargoId>
    25  </CargoHeader>
    26  <CargoDimensions>
    27  <Length>1</Length>
    28  <Width>2</Width>
    29  </CargoDimensions>
    30  </CargoDetail>
    31  <CargoDetROW>
    32  <CargoHeader>
    33  <CargoReceivedSeqNo>600015391791</CargoReceivedSeqNo>
    34  <CargoId>RW9330P01394AA</CargoId>
    35  </CargoHeader>
    36  <CargoDimensions>
    37  <Length>2</Length>
    38  <Width>2</Width>
    39  </CargoDimensions>
    40  </CargoDetail>
    41  <Cargo_ROW>
    42  <CargoHeader>
    43  <CargoReceivedSeqNo>600015391792</CargoReceivedSeqNo>
    44  <CargoId>RW9330P01322</CargoId>
    45  </CargoDetaiW>
    46  <CargoDimensions>
    47  <Length>1</Length>
    48  <Width>2</Width>
    49  </CargoDimensions>
    50  </Cargo_ROW>
    51  </Cargo>
    52  </Transaction>
    53  </Message>';
    54  xmldata:=to_clob(regexp_replac(xmldata,'</Cargo_ROW>|</CargoDetaiW>|</CargoDetROW>','</CargoDetail'));
    55  xmldata:=to_clob(regexp_replace(xmldata,'<Cargo_ROW>|<CargoDetaiW>|<CargoDetROW>','<CargoDetail>'));
    56  dbms_output.put_line(xmldata);
    57  end;
    58  /
    <Message transaction_log_id="" extraction_date="25/11/09 09:52:03 AM"
    version="1.0">
    <Transaction>
    <TransactionType>ORIGINAL</TransactionType>
    <Contro
    lNumber>60022449779</ControlNumber>
    <BookingHeader>
    <PortCodeOriginal>GBSOU</Por
    tCodeOriginal>
    <Contact>.</Contact>
    <PhoneContact>.</PhoneContact>
    </BookingHead
    er>
    <PartyInformation>
    <PartyDetails>
    <PartyId>10002866</PartyId>
    <Type>SHIP</Ty
    pe>
    <Name1>L
    LTD.</Name1>
    </PartyDetails>
    </PartyInformation>
    <Cargo>
    <CargoDetail>
    <CargoHea
    der>
    <CargoReceivedSeqNo>600015391790</CargoReceivedSeqNo>
    <CargoId>RW9330P01394
    8</CargoId>
    </CargoHeader>
    <CargoDimensions>
    <Length>1</Length>
    <Width>2</Width>
    </CargoDimensions>
    </CargoDetail>
    <CargoDetail>
    <CargoHeader>
    <CargoReceivedSeq
    No>600015391791</CargoReceivedSeqNo>
    <CargoId>RW9330P01394AA</CargoId>
    </CargoHe
    ader>
    <CargoDimensions>
    <Length>2</Length>
    <Width>2</Width>
    </CargoDimensions>
    <
    /CargoDetail>
    <CargoDetail>
    <CargoHeader>
    <CargoReceivedSeqNo>600015391792</Carg
    oReceivedSeqNo>
    <CargoId>RW9330P01322</CargoId>
    </CargoDetail>
    <CargoDimensions>
    <Length>1</Length>
    <Width>2</Width>
    </CargoDimensions>
    </CargoDetail>
    </Cargo>
    </Transaction>
    </Message>
    PL/SQL procedure successfully completed.
    SQL> Twinkle
    Edited by: Twinkle on Nov 26, 2009 6:05 PM

  • Replacement function modules/method for obsolete Funtion Modules in ECC 6.0

    We are working on Upgrade Project and need your help in finding the replacement Function module/ Methods for following obsolete Function Modules:
       1.   GET_FIELDTAB
       2.   WS_EXCEL
       3.  HR_DISPLAY_BASIC_LIST
       4.  LOG_SYSTEM_GET_RFC_DESTINATION
       5.  HELPSCREEN_NA_CREATE
       6. TR_RELEASE_COMM
    Thank in Advance.
    Sarita.
    Edited by: Sarita Yalamati on Mar 28, 2008 1:23 PM

    Hi sarita,
    for GET_FIELDTAB use 'DDIF_NAMETAB_GET'..here is sample code
      CALL FUNCTION 'GET_FIELDTAB'
           EXPORTING
                LANGU               = SY-LANGU
                TABNAME             = C_STRUCTURE_NAME
                WITHTEXT            = ' '
           TABLES
                FIELDTAB            = IDFIES
           EXCEPTIONS
               INTERNAL_ERROR      = 01
                NO_TEXTS_FOUND      = 02
                TABLE_HAS_NO_FIELDS = 03
                TABLE_NOT_ACTIV     = 04.
    Replacement :
    CALL FUNCTION 'DDIF_NAMETAB_GET'
      EXPORTING
        TABNAME           =  C_STRUCTURE_NAME
      ALL_TYPES         = ' '
      LFIELDNAME        = ' '
      GROUP_NAMES       = ' '
      UCLEN             =
    IMPORTING
      X030L_WA          =
      DTELINFO_WA       =
      TTYPINFO_WA       =
      DDOBJTYPE         =
      DFIES_WA          =
      LINES_DESCR       =
    TABLES
      X031L_TAB         =
       DFIES_TAB         = IDFIES
    EXCEPTIONS
       NOT_FOUND         = 1
       OTHERS            = 2
    For WS_EXCEL  use GUI_DOWNLOAD.. here is sample code
    CALL FUNCTION 'WS_EXCEL'
    EXPORTING
       FILENAME            = 'D:\FILE1.xls'
      SYNCHRON            = ' '
      TABLES
        DATA                = itab
    EXCEPTIONS
       UNKNOWN_ERROR       = 1
       OTHERS              = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Repalcement :
    data : l_filename type string.
    l_filename  = 'D:\FILE1.xls'.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = l_filename
      FILETYPE                        = 'ASC'
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = itab
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        DOCUMENT               = 'D:\FILE1.xls'
       APPLICATION            =
       PARAMETER              =
       DEFAULT_DIRECTORY      =
       MAXIMIZED              =
       MINIMIZED              =
       SYNCHRONOUS            =
        OPERATION              = 'OPEN'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        others                 = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • REPLACE function in PSP for formatting

    Hi everyone,
    <p>I am coding PL/SQL server pages at the moment and am trying to produce an onscreen report.
    <br>I was just wondering if it is possible to use the REPLACE function to replace a part of a string with the same thing but in bold?
    for example, I have tried:
    <p>
    htp.p('<TD WIDTH="43%" valign="top" align="left">'||REPLACE(var_comments,'''TEST''',||'<b>TEST</b>'||')'||'</TD>'); <p>but it isn't working. I just wanted to check it was possible and if so, where am I going wrong??
    <p>
    Thanks in advance!

    This will work:
    htp.p('<TD WIDTH="43%" valign="top" align="left">'||REPLACE(var_comments,'''TEST''',||'&lt;b&gt;TEST&lt;/b&gt;'||')'||'</TD>');I also suggest generating your table HTML using the htp.table... procedures.

  • Replace function - only for characters?

    When I'm using the replace function below, I get an error message stating:
    replace(char,char) in java.lang.String cannot be applied to (java.lang.String,java.lang.String)
    Does anyone know why this happening? Shouldn't this function work for strings? My JSP is below, thanks in advance!
    <%= request.getParameter("overrides")%>
    <p>
    <% String message = request.getParameter("overrides"); %>
    <%= message %>
    <% message = message.replace("WRKS_FULL_DAY","Full Day Timecode"); %>
    <%= message %>

    Some examples of how to do it:
    import java.util.*;
    public class newT {
         public static void main(String[] args) {
             String targetString = "Hello, Hello, Goodbye,";
             String results = targetString.replaceAll(",", "\n");           
             System.out.println(">>" + results + "<<");
             String x = System.getProperty("line.separator");
             String resultsx = targetString.replaceAll(",", x);           
             System.out.println(">>" + resultsx + "<<");         
                 String[] strArray = targetString.split(",");
                 String results2 = strArray[0];
                  if ( strArray.length > 1) {
                        for (int i =1; i < (strArray.length); i++) {
                             results2 = results2 + "\n" + strArray;
    if (targetString.endsWith(",")) {
         results2 = results2 + "\n";
         System.out.println(">>" + results2 + "<<");

  • A function for generate a actual tree select

    hi,
    i tried to write a function that generate a actual tree select and i think this is very helpful
    Create Or Replace Function Generate_Tree_Fun(p_Path Varchar2,
    p_Delimiter Varchar2,
    p_Level Integer,
    p_Tbl_Name Varchar2,
    p_Parent_Field Varchar2,
    p_Child_Filed Varchar2)
    Return Varchar2 Is
    v_Txt Varchar2(5000) := '';
    v_Row_Num Number;
    v_Max_Count Number;
    v_Child Varchar2(100);
    v_Parent Varchar2(100);
    v_Level Number := p_Level;
    Begin
    If (v_Level = 1) Then
    Return '';
    End If;
    If (v_Level > 1) Then
    v_Txt := '|' || Lpad('_', 6, '_');
    End If;
    If (v_Level > 2) Then
    For i In 1 .. p_Level - 2 Loop
    v_Level := v_Level - 1;
    v_Child := Ltrim(Regexp_Replace(p_Path,
    Ltrim(Replace(p_Path,
    p_Delimiter,
    ')(' || p_Delimiter) || ')',
    '\' || v_Level),
    p_Delimiter);
    Execute Immediate 'Select t.' || p_Parent_Field || '
    From ' || p_Tbl_Name || ' t
    Where t.' || p_Child_Filed || ' = :1'
    Into v_Parent
    Using v_Child;
    Execute Immediate 'Select a, b From (Select Row_Number() Over(Order By t.' ||
    p_Child_Filed ||
    ') a,Count(1) Over(Partition By t.' ||
    p_Parent_Field || ') b,t.' || p_Child_Filed ||
    ',t.' || p_Parent_Field || ' From ' || p_Tbl_Name ||
    ' t Where t.' || p_Parent_Field ||
    ' = :1 Order By t.' || p_Child_Filed || ') Where ' ||
    p_Child_Filed || ' = :2 '
    Into v_Row_Num, v_Max_Count
    Using v_Parent, v_Child;
    If (v_Row_Num <> v_Max_Count) Then
    v_Txt := Rpad('|', 20, ' ') || v_Txt;
    Else
    v_Txt := Rpad(' ', 20, ' ') || v_Txt;
    End If;
    End Loop;
    End If;
    Return v_Txt;
    End;
    select Generate_Tree_Fun(sys_connect_by_path(e.empno,','),',',level,'emp','mgr','empno') || e.ename
    from emp e
    start with mgr is null
    connect by e.mgr=prior e.empno
    enjoy it

    Arash wrote:
    hi,
    i tried to write a function that generate a actual tree select and i think this is very helpful
    We are so proud of you!

Maybe you are looking for