Can please tell me that the code be?

Hi all;

In fact there is a form in which clicking on a button, excellent spreadsheet data gets uploaded in an oracle DB table.

For this button, for relaxation: WHEN_BUTTON_PRESSED, I am pasting part of this huge code.

DDE. Application (ConvID, 'R' |) RR | "C9", docamt, DDE. " Cf_Text, 1000);

: Ulbih_prod_grp_cd: = substr (rtrim (docamt, chr (10) |)) Chr (13)), 1, 3);

DDE. Application (ConvID, 'R' |) RR | "C10", docamt, DDE. " Cf_Text, 1000);

: Ulbih_po_ref_no: = substr (rtrim (docamt, chr (10) |)) Chr (13)), 1, 40);

DDE. Application (ConvID, 'R' |) RR | ' C11', docamt, DDE. Cf_Text, 1000);

: Ulbih_po_ref_dt: = substr (rtrim (docamt, chr (10) |)) Chr (13)), 1, 10);

DDE. Application (ConvID, 'R' |) RR | ' C12', docamt, DDE. Cf_Text, 1000);

: Ulbih_oa_no: = substr (rtrim (docamt, chr (10) |)) Chr (13)), 1, 15);


I just wanted to know that must do the following code?

: Ulbih_po_ref_no: = substr (rtrim (docamt, chr (10) |)) Chr (13)), 1, 40);


In the code above, I know that Ulbih_po_ref_no is assigned a value.

I know what substr (substring) and rtrim only.

But I don't know what exactly makes the rest of the code?

Can you please that does? (docamt, chr (10) |) Chr (13)), 1, 40);

Thank you.

GEC Oracle 6i

Oracle 9i DB.


I just wanted to know that must do the following code?

: Ulbih_po_ref_no: = substr (rtrim (docamt, chr (10) |)) Chr (13)), 1, 40);


For example, that the content of docmat is "ABCDEFG".

Chr (10) returns the character ascii for this figure not. For example: for 116 is ' t ' and for 84 is ' t. "

Similarly, for Chr (13), it will return character.

2 combination of characters is the primary right filled with docmat and then a substring from 1 to 40 characters is established.

Now let's say Docamt Contans 'abcdefghxtxtxtxt '.

and suppose that for Chr (13) he returns 'x' and the Chr (10) he returned 't'

If the result of rtrim ("abcdefghxtxtxtxt", chr (10) |) Chr (13)) will be rtrim (abcdefgxtxtxtxt, 'xt') = abcdefg

and then substr (abcdefg, 1, 3) returns "abc".

You can check the exact content of the docmat MESSAGE (docmat) and checkout.

Tags: Oracle Development

Similar Questions

Maybe you are looking for