Inserting a literal text string within a function
This should be an easy function to write but I am plenty rusty and am missing something here:
I have a list of numbers which total 11 when all numbers are entered. I want to average the numbers once all values are entered - $E$21 will equal 11 when all values are entered ( I used: =COUNTIF(E10:E20,">0") That function works fine and keeps a running total of how many values have been entered and when all 11 are entered, it gives the average.
Here's the formula and of course it works, entering 0 until all 11 values are entered:
=-IF($E$21=11,AVERAGE(E9:E19),0)
But the secretary wants it to say "Calculating" instead of zero if all numbers are still being entered so I tried to enter the string "Calculating" in place of the zero for condition if false (that is: =-IF($E$21=11,AVERAGE(E9:E19),"Calculating") and the function fails. I thought I could do that but there is something I just don't know here. I apologize in advance since this is probably a simple gap in my understanding but can anyone help me with my formula. Thanks in advance
Maybe this is what you want?
E1=IF(COUNTA(A1:D1)>0, IF(COUNTA(A1:D1)<4, "Calculating",AVERAGE(A1:D1) ) ,"")
this is shorthand for... select cell E1, then type (or copy and paste from here) the formula:
"=IF(COUNTA(A1:D1)>0, IF(COUNTA(A1:D1)<4, "Calculating",AVERAGE(A1:D1) ) ,"")"
Similar Messages
-
Insert values in an array (within a function)
Hello,
I can't seem to get values insert in an array. I know it
works outsite the function but
when using variables in a function and trying to insert this
in an array it does not work.
The values are empty.
But if you uncomment the line someArray.push(a0,a1,a2) and
uncommend the for loop it works.
In actionscript 2.0 i could use eval ..but in actionscript
3.0 you have to use this to convert a string to a value.
Does anyone see, what i am doing wrong?
function doSomething() {
var a0:String = "hello";
var a1:String = "why doesn't it";
var a2:String = "work!";
var someArray:Array = new Array();
//someArray.push(a0,a1,a2);
for (var i:uint =0; i<=3; i++) {
someArray.push(this["a"+i]);
trace(someArray);
doSomething();In this case, the problem arises from a scope issue. The vars
are defined within the function so they are visible only within the
function. When you use "this" you are referencing the object that
contains the function, which cannot see those vars (they do not
exist for "this", only for the function). It works if you go this
way...
var a0:String = "hello";
var a1:String = "why doesn't it";
var a2:String = "work!";
function doSomething() {
var someArray:Array = new Array();
for (var i:uint=0; i<3; i++) {
someArray.push(this["a"+i]);
trace(someArray);
doSomething();
The other line: someArray.push(a0,a1,a2);
does work because it is within the function and can see the
vars. -
Database connection(select ,insert query) within javascript function
Hi ,
How to write the database connection(insert,delete or select query) within javascript function.Is it possible.Anyone can you help me
than youHi ,
How to write the database connection(insert,delete
ete or select query) within javascript function.Is it
possible.No -
Find and Replace text string in HTML
Opps... I hope this forum is not just for Outlook. My Html files reside on my hard-drive. I am looking for VBA code to open specified file names ####File.html and then find and replace text strings within the html for example "####Name" replaced
with "YYYYY"
I drive the "####File.html" names and the find and replace text strings from an Excel sheet. I am an artist and this Sub would give me time to paint instead of find and replace text. Thank you!
[email protected]Hello Phil,
The current forum is for developers and Outlook related programming questions. That's why I'd suggest hiring anybody for developing the code for you. You may find freelancers, for example. Try googling for any freelance-related web sites and asking such
questions there.
If you decide to develop an Outlook macro on your own, the
Getting Started with VBA in Outlook 2010 article is a good place to start from. -
When I have an AI file open and in the text mode. The Tilda character "~" is inserted into the text string every few minutes. I can go away and when I come back there will be 20 "~" all in a row. Is there any cure?
tci,
You may try the list, unless there is something wrong with the Tilde key (hanging or something).
The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
If possible/applicable, you should save curent artwork first, of course.
1) Close down Illy and open again;
2) Restart the computer (you may do that up to at least 5 times);
3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
Even more seriously, you may:
6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
http://www.adobe.com/support/contact/cscleanertool.html -
ORA-14551 Call to a proc that performs INSERT from within a FUNCTION
Anyone,
I have written a number of functions that serve to convert an old_value to a new_value. But there are some times when the conversion fails. I wish to log those exceptions into a table and move on. I undertand FUNCTIONS are not to insert data but that is why I created a PROC and want to be able to call it from within the FUNCTIONs.
Is there any way to get around the ORA-14551 error?
Here is what I have:
CREATE OR REPLACE FUNCTION MAXIMO.fcn_get_worktype
( worktype_IN IN varchar2,
siteid_IN IN varchar2)
RETURN varchar2 IS
var_worktype varchar2(5);
BEGIN
IF siteid_IN IN ('ML','OK','BE') THEN
BEGIN
SELECT NVL(NEW_WTYPE,NULL)
INTO var_worktype
FROM MAXIMO.MAX411_WBK_WORKTYPE$
WHERE OLD_WTYPE = worktype_IN;
EXCEPTION
WHEN NO_DATA_FOUND THEN
MAXIMO.SP_CONVERSION_EXCEPTION('WORKTYPE', 'WORKTYPE', worktype_IN, siteid_IN);
var_worktype := 'XX';
RETURN var_worktype;
END;
END IF;
RETURN var_worktype ;
END;And here is my PROC:
CREATE OR REPLACE PROCEDURE MAXIMO.sp_conversion_exception (table_IN IN VARCHAR2, column_IN IN VARCHAR2, value_IN IN VARCHAR2, tab_ID IN VARCHAR2)
IS
BEGIN
INSERT INTO MAXIMO.MAX411_CONVERSION_EXCEPTIONS
( TABLE_NAME,
COLUMN_NAME,
VALUE ,
TAB_ID)
VALUES
( table_IN,
column_IN,
value_IN,
tab_ID );
EXCEPTION
/* If value was already recorded then do not record again, Key is on all three columns */
WHEN DUP_VAL_ON_INDEX
THEN
NULL;
COMMIT;
END;Can anyone shed any light on how I can stop getting:
ERROR at line 1:
ORA-14551: cannot perform a DML operation inside a query
ORA-06512: at "MAXIMO.SP_CONVERSION_EXCEPTION", line 5
ORA-06512: at "MAXIMO.FCN_GET_WORKTYPE", line 16
ORA-01403: no data found
ORA-06512: at "MAXIMO.LOAD_PM", line 181
ORA-06512: at line 1
Thanks in advance for any help I can get...
MillerYou need a PRAGMA AUTONOMOUS_TRANSACTION in your exception procedure, eg:
CREATE OR REPLACE PROCEDURE MAXIMO.sp_conversion_exception (table_IN IN VARCHAR2, column_IN IN VARCHAR2, value_IN IN VARCHAR2, tab_ID IN VARCHAR2)
IS
PRAGMA AUTONOMOUS_TRANSACTION
BEGIN
... -
How to display LONG TEXT STRING in Module Pool Screen ?
Hi Experts,
I want to display long text string, on screen designed through module pool(SE51). I tried to display through input/output field , but it displays it in SINGLE LINE and i have to scroll all through to view all string.
I want to display it in rectangular format . It doesnt allow me to set HEIGHT of component.
Please provide solution.
Thanks in advance.
Regards
DeepakThis is the program where u can get the WA_THEAD from other program like report and trying to display and modifying that text. U can do instead of WA_THEAD u can generate here itself and use also
*& Module pool ZMP_LTEXT *
PROGRAM ZMP_LTEXT .
TABLES: STXL.
*& Module STATUS_9000 OUTPUT
MODULE STATUS_9000 OUTPUT.
CONSTANTS:line_length type i value 132.
DATA:g_editor type ref to cl_gui_textedit,
g_editor_container type ref to cl_gui_custom_container,
CONT1 type scrfname value 'CONT1',
g_repid like sy-repid,
g_ok_code like sy-ucomm,
g_mytable(132) type c occurs 0,
g_mycontainer(30) type c ,
v_result(256) type c,
g_head like thead,
it_line type table of tline with header line,
wa_stxl type stxl.
DATA : BEGIN OF IT_THEAD1,
ICON TYPE ICON-ID.
INCLUDE STRUCTURE STXL.
DATA : END OF IT_THEAD1.
DATA : IT_THEAD LIKE TABLE OF IT_THEAD1,
WA_THEAD LIKE LINE OF IT_THEAD.
IMPORT WA_THEAD FROM MEMORY ID 'ABCD'.
select SINGLE * from STXL into wa_stxl
where tdname = '00006000156500000002'.
SELECT SINGLE * from STXL into wa_stxl
where tdname = WA_THEAD-TDNAME
AND TDID = WA_THEAD-TDID
AND TDOBJECT = WA_THEAD-TDOBJECT
AND TDSPRAS = WA_THEAD-TDSPRAS.
IF SY-SUBRC NE 0.
MESSAGE 'NO RECORD EXIST' TYPE 'E'.
ENDIF.
MOVE-CORRESPONDING WA_STXL TO G_HEAD.
SET PF-STATUS 'STATUS'.
SET TITLEBAR '001'.
if g_editor is initial.
CREATE OBJECT G_EDITOR_CONTAINER
EXPORTING
PARENT =
CONTAINER_NAME = CONT1
STYLE =
LIFETIME = lifetime_default
REPID =
DYNNR =
NO_AUTODEF_PROGID_DYNNR =
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5
others = 6.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT G_EDITOR
EXPORTING
MAX_NUMBER_CHARS =
STYLE = 0
WORDWRAP_MODE = cl_gui_textedit=>wordwrap_at_fixed_position
for to fix number of characters in row to 132 characers
WORDWRAP_POSITION = line_length
WORDWRAP_TO_LINEBREAK_MODE = cl_gui_textedit=>true
for the word to break to next line if it dont fit in line
FILEDROP_MODE = DROPFILE_EVENT_OFF
PARENT = G_EDITOR_CONTAINER
LIFETIME =
NAME =
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
GUI_TYPE_NOT_SUPPORTED = 5
others = 6 .
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH g_mytable.
MOVE: WA_THEAD-TDNAME TO STXL-TDNAME,
WA_THEAD-TDID TO STXL-TDID,
WA_THEAD-TDOBJECT TO STXL-TDOBJECT,
WA_THEAD-TDSPRAS TO STXL-TDSPRAS.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = wa_stxl-tdid
LANGUAGE = wa_stxl-tdspras
NAME = wa_stxl-tdname
OBJECT = wa_stxl-tdobject
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = it_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT IT_LINE INTO V_RESULT.
APPEND V_RESULT TO G_MYTABLE.
ENDLOOP.
CALL METHOD G_EDITOR->SET_TEXT_AS_R3TABLE
EXPORTING
TABLE = G_MYTABLE
EXCEPTIONS
ERROR_DP = 1
ERROR_DP_CREATE = 2
others = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.
ENDMODULE. " STATUS_9000 OUTPUT
*& Module USER_COMMAND_9000 INPUT
MODULE USER_COMMAND_9000 INPUT.
CASE SY-UCOMM.
REFRESH G_MYTABLE[].
REFRESH IT_LINE[].
CLEAR V_RESULT.
WHEN 'SAVE'.
CALL METHOD G_EDITOR->GET_TEXT_AS_R3TABLE
EXPORTING
ONLY_WHEN_MODIFIED = FALSE
IMPORTING
TABLE = G_MYTABLE
IS_MODIFIED =
EXCEPTIONS
ERROR_DP = 1
ERROR_CNTL_CALL_METHOD = 2
ERROR_DP_CREATE = 3
POTENTIAL_DATA_LOSS = 4
others = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT G_MYTABLE INTO V_RESULT.
APPEND V_RESULT TO IT_LINE.
ENDLOOP.
CLEAR V_RESULT.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = G_HEAD
INSERT = ' '
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
LINES = IT_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH G_MYTABLE[].
REFRESH IT_LINE[].
CLEAR V_RESULT.
WHEN 'BACK' OR 'CANCEL' OR 'EXIT'.
LEAVE TO SCREEN '0'.
*CALL SCREEN '0'.
WHEN OTHERS.
ENDCASE.
*G_OK_CODE = SY-UCOMM.
*CLEAR SY-UCOMM.
ENDMODULE. " USER_COMMAND_9000 INPUT -
Use of & in search within a function
I need to write a function that strips out
information from a text string.
The end of the text I am interested in is marked with &.
As with other cases it keeps prompting for a value, which is not acceptable as this will be run from an application.
I have tried set define off within the function, but this causes a compilation error.The '&' is only an issue within sql*plus. If you are not directly entering your code in sql*plus as against storing it in a file and then compiling the function '&' should not be an issue at all.
HTH -
Adding text string to existing cell contents in Numbers '09
Hi
First up ... I have read the manual (user guide and formula guide) and searched the forum. I have REALLY tried to get this simple thing to work... but I'm doing something wrong...
2 columns
A B
file1 .aiff
File2 .aiff
file3 .aiff
file4 .aiff
I want to combine the two columns ... I don't care if I append the string ".aiff" to the values in column A, or create a new column C that looks like this
C
file1.aiff
file2.aiff
file3.aiff
I have tried CONCATENATE by entering a formula in an empty cell at the bottom of column A but it just concatenates one row. I have attempted to create column C and enter formulas like =A&" "&B (from posts here) in cells all over the place... but they just turn into cell text strings. I've read that I just have to paste a formula into a column header, enter a formula then auto fill....
Clearly many ways to do this ... but never a "thanks that worked"... the threads just end.
Can someone set me straight? That is what function/formula to use and where to enter it... and how if there's a trick I'm missing.
I'd do this concatenation manually if there were't thousands of entries to do!
Burned
LeeHi Lee,
You wrote:
I have tried CONCATENATE by entering a formula in an empty cell at the bottom of column A but it just concatenates one row.
That's the way formulas work. The formula determines the content of the cell that contains the formula. You need to place the formula into every cell where you want to get that result.
Fortunately, that can be done pretty efficiently.
If ALL of the cells in column B contain the same extension (.aiff), you can replace that with
=A&".aiff"
Enter the formula in the first 'regular' (ie. non-header) cell in column B and Fill down (see below) through the rest of the column.
If some cells in B contain different values, you'll need to do the concatenation in column C.
=A&B (see note below regarding your similar formula)
or
=CONCATENATE(A,B)
As above, enter the formula in the first non-header cell in column C and Fill down.
To fill down through a long column:
Click any cell to show the row and column reference tabs.
Click on the column reference tab (B or C) to select the whole column.
Command-click on each of the header cells above the formula to remove it from the selection.
When the formula is in the top cell of the selection, go Insert > Fill > Fill down.
Regards,
Barry
Note re your formula: =A&" "&B
With 'file1' in column A and '.aiff' in column B the result of this formula will be file1 .aiff
As I thought you probably did not want the space between the filename and the extension, I removed it from the formula:
=A&B
Result: file1.aiff -
Search for a String within a document (Word, txt, doc) using JSP, JAVA
Hi
I have created a little application that uses combination of JSP and HTML. Users of this application can upload documents which are then stored on the server. I need to develop functionality where I can allows users to search for a string within a document. More precisely, user would type in some string in a text box and application will search all uploaded documents for that string and return the downloadable links to those documents that contains that string. I have never done this before. I was wondering if someone could get me started on this or point me to some thread where this idea is already discussed. Any Jave code exists for searching through documents??
Thanks for your help
Rizhttp://www.ibm.com/developerworks/java/library/j-text-searching.html
http://en.wikipedia.org/wiki/Full_text_search
Type these parameter in yahoo:+efficient text search
you will need something like openoffice library to read microsoft word document. -
Write text string using actionscript?
Hi,
I'm rather new at actionscript. I know I can do this in
javaScript using "document.write" but I don't seem to be having any
luck with actionscript.
I'd like to include some text strings that display within a
actionscript function.
I have a dynamic text field called "pagecount".
The function is:
function onEnterFrame()
pagecount.text = _parent._parent.rdinfoSlideCount;
I want to include text that says to the user "You are now on
page _____ (results of the function)."
With JavaScript it might look something like this:
function onEnterFrame()
pagecount.text = document.write("You are now on page ") +
_parent._parent.rdinfoSlideCount;
This doesn't work.
What would be the syntax to add text to the actionscript
function?
Thank you,
TPKIf I understand, then this would do it:
pagecount.text = "You are now on page " +
_parent._parent.rdinfoSlideCount;
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Cp4 AS3 - using Javascript to generate a text string
I'm a complete Javascript beginner, so please forgive me if this is a stupid question!
I need to generate a pseudo random text string. I'm using the unpatched version of Cp4, AS3, Internet Explorer 7
I've had a look at Captivate.Dev.com and the w3schools site to try to understand how to pass variables & basic javascript, and this is what I've come up with:
var objCP = document.Captivate;
function GenerateCode(){
var rngen = new Array(8);
var tgits = new Array(8);
var cdrtn="";
var lpdx=0;
var mulier=1;
for (lpdx=0;lpdx<=5;lpdx++){
rngen[lpdx]=(Math.floor(Math.random()*9)+1);
mlier=mulier*(rngen[lpdx]);
tgits[lpdx]=rngen[lpdx]+"";
cdrtn=cdrtn+tgits[lpdx];
rngen[6]=(mlier%17)%10;
rngen[7]=(mlier%13)%10;
for (lpdx=6;lpdx<=7;lpdx++)
tgits[lpdx]=rngen[lpdx]+"";
cdrtn=cdrtn+tgits[lpdx];
objCP.cpEISetValue('MyJavascriptVariable', cdrtn);
GenerateCode();
I've created a user variable called MyJavascriptVariable , put the code above in the On Slide Enter, Execute Javascript window on the first slide, and on the second a simple caption box showing the variable contents.
However, when I press F12 I get an orange playbar at the top of the window, and in the middle the preloader and the captionbox (without the return value) flickering. i.e. classic sign of wrong AS version.
If I change to AS2 the movie progresses ok, but the value the caption reports back for MyJavascriptVariable is blank.
I know my core code works correctly - if I use the w3school's tryit editor with the code after the function declaration up to the closing curly before the objcCP line, with an addeded document.write to show the variable it works fine.
It's clearly something to do with the way I'm declaring/passing the function or the way Cp runs the javascript. But what?
Any help greatfully appreciated!
ThanksHi Jon,
You are right... it works great on the W3Schools site. Although in Cp, you ran into quite an issue using the modulus operater (%). Looks like Cp needs the encoded version of this operator which is (%25). Also, if you're using Cp4, then when you go to set the caption, you want to use objCP.cpSetValue(); Cp5 uses cpEISetValue. I also try to use single quotes when working with strings.
Here's the updated code:
var objCP = document.Captivate;
function GenerateCode() {
var rngen = new Array(8);
var tgits = new Array(8);
var cdrtn='';
var lpdx = 0;
var mulier=1;
for (lpdx=0; lpdx<=5; lpdx++){
rngen[lpdx]=(Math.floor(Math.random()*9)+1);
mlier=mulier*(rngen[lpdx]);
tgits[lpdx]=rngen[lpdx]+'';
cdrtn=cdrtn+tgits[lpdx];
rngen[6]=(mlier %25 17) %25 10;
rngen[7]=(mlier %25 13) %25 10;
for (lpdx=6; lpdx<=7; lpdx++){
tgits[lpdx]=rngen[lpdx]+'';
cdrtn=cdrtn+tgits[lpdx];
objCP.cpSetValue('MyJavascriptVariable', cdrtn);
GenerateCode();
This looks like some really crazy math.
Let me know if this helps.
Jim Leichliter -
How can I use & in a text string so that the system doesn't ask for the user to enter a value. eg the string is Joe Blogs & Co. Currently the system asks for the user to enter text.
Ferris
An other option is to change your 'define'-character within SQL*Plus:
SQL> sho define
define "&" (hex 26)
SQL> select 'AAA & BBB' from dual
2 ;
Enter value for bbb:
SQL> set define #
SQL> sho define
define "#" (hex 23)
SQL> select 'AAA & BBB' from dual
2 ;
'AAA&BBB'
AAA & BBB
1 row selected.
Martin -
How To Color a Text string using Regex (java.util.regex)
Hello,
How can I color a text string using regex class in 1.4?Yes, did you notice it said something about incredibly vague functionality?
Let me break it down for you
> How can I color a text string
Strings do not have color... You can color a component (a label, a button), but you can't color a string
> using regex class in 1.4?
Using a regular expression? How would a regular exression color anything? Do you have embedded color codes? Are you searhing a string for some secret word?
What are you talking about? -
Use REGEXP_INSTR to find a text string with space(s) in it
I am trying to use REGEXP_INSTR to find a text string with space(s) in it.
(This is in a Function.)
Let's say ParmIn_Look_For has a value of 'black dog'. I want to see if
ParmIn_Search_This_String has 'black dog' anywhere in it. But it gives an error
Syntax error on command line.
If ParmIn_Look_For is just 'black' or 'dog' it works fine.
Is there some way to put single quotes/double quotes around ParmIn_Look_For so this will
look for 'black dog' ??
Also: If I want to use the option of ignoring white space, is the last parm
'ix' 'i,x' or what ?
SELECT
REGEXP_INSTR(ParmIn_Search_This_String,
'('||ParmIn_Look_For||')+', 1, 1, 0, 'i')
INTO Position_Found_In_String
FROM DUAL;
Thanks, WayneMaybe something like this ?
test@ORA10G>
test@ORA10G> with t as (
2 select 1 as num, 'this sentence has a black dog in it' as str from dual union all
3 select 2, 'this sentence does not' from dual union all
4 select 3, 'yet another dog that is black' from dual union all
5 select 4, 'yet another black dog' from dual union all
6 select 5, 'black dogs everywhere...' from dual union all
7 select 6, 'black dog running after me...' from dual union all
8 select 7, 'i saw a black dog' from dual)
9 --
10 select num, str
11 from t
12 where regexp_like(str,'black dog');
NUM STR
1 this sentence has a black dog in it
4 yet another black dog
5 black dogs everywhere...
6 black dog running after me...
7 i saw a black dog
5 rows selected.
test@ORA10G>
test@ORA10G>pratz
Also, 'x' ignores whitespace characters. Link to doc:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions007.htm#i1048942
Message was edited by:
pratz
Maybe you are looking for
-
Help! Data recovery needed after lapse of thought... Suggestions please
All was going well with my Mini Server, but apart from the boot partition, I had no back-up plan in place which made me uncomfortable. So in seek of a performance upgrade and a back-up solution I ordered a larger 750GB HDD for bay 1 and a SSD for bay
-
Project Management System In Dreamweaver
I'm looking to create project management system in Dreamweaver; similar to MS Outlook, only with an enhanced task hierarchy and detail section. Does anyone know of examples and / or books where I can see what I'm getting myself into? Even better, do
-
Only sone picture icons show previews in Finder
I think it's only since Thursday's most recent security update, but when I open a folder containing pictures, only some of the thumbnails show previews. Others just show a generic thumbnail with the file type instead of a preview (jpeg, Raw, etc.). S
-
Hello every body, We are doing an upgrade from 4.6C to ECC6. we have imported a transport request from 4.6C to ECC6. When I change the transport layer of a package that is newly imported and save it, the system prompts for a local work bench request.
-
ITunes Freezes on determining gapless playback information
I really would like some help, I start iTunes up it starts to check the gapless playback information, then stops and I can't do anything more, except close it out. I have tried repairing it, I have tried uninstalling then reinstalling it, nothing see