Stew Stryker
Member³
I'm running Beta v13.0.0.1872.
I was trying to use this new feature to set a Logpoint. The basics seem to work fine, but I can't seem to get a variable value to display. Maybe I'm not understanding how to reference it?
Here's my little function and the Logpoint:
  
		
		
	
	
		
	
When I run that function from the Test Window using the debugger, I get the following DBMS Output:
1.726 FINDSTRBETWEEN.14: Start pos: :istartpos
I expected it would show the variable value, not the name.
Thanks,
Stew
The function source is originally fromhttp://oraclecoder.com/tutorials/find-string-between-start-string-and-end-string--2971
Reproduced here for your testing:
	
	
	
		
				
			I was trying to use this new feature to set a Logpoint. The basics seem to work fine, but I can't seem to get a variable value to display. Maybe I'm not understanding how to reference it?
Here's my little function and the Logpoint:
	When I run that function from the Test Window using the debugger, I get the following DBMS Output:
1.726 FINDSTRBETWEEN.14: Start pos: :istartpos
I expected it would show the variable value, not the name.
Thanks,
Stew
The function source is originally fromhttp://oraclecoder.com/tutorials/find-string-between-start-string-and-end-string--2971
Reproduced here for your testing:
		Code:
	
	CREATE OR REPLACE FUNCTION findstrbetween(pstring      IN VARCHAR2,
                                          pstartstring IN VARCHAR2,
                                          pendstring   IN VARCHAR2) RETURN VARCHAR2 IS
    retval VARCHAR2(1000);
    istartpos INTEGER;
    iendpos INTEGER;
    vreststring VARCHAR2(1000);
BEGIN
    istartpos := INSTR(pstring, pstartstring) + LENGTH(pstartstring);
    vreststring := SUBSTR(pstring, istartpos, LENGTH(pstring) - istartpos + 1);
    iendpos := INSTR(vreststring, pendstring) - 1;
    retval := SUBSTR(vreststring, 1, iendpos);
    RETURN retval;
END findstrbetween;