How to compare character/digits
Hi,
I have retrieved the last two character(it may be numbers or alphabets) of a string, using substr function. I want to compare the retrieved characters. Please help me how to do the same.
Regards
Uva
Since both are varchar2 columns,
SImply try beow..
Let us think that u have two field -Filed1 and Filed2 - both are varchar2 type, then to compare, do below
If Upper(Filed1) = Upper(Filed2) Then
----- Equal -Message
Else
--else Message
End If
Similar Messages
-
How to compare character with \ ?
Hi,
How can I compare a character with backslash ?
when I do
if (c == '\')
then it gives error invalid character constant
I cant even declare string with this value like
String str = "\";
this gives error string literal is not properly closed by double qoute
thanks in advance
BHi,
You can use the below
String str = "\\";
char c = '\\';
* are considered as \ at runtime.
Regards,
Sruti -
How to write Arabic digits in PS
I have installed photoshop cs 4 Middle east version.There is one problem to writing arabic digits..
How to write these digits into arabic form ..(1,2,3,4,5,6,7,8,9,0).
I have install Arabic fonts.
Also window support Arabic language.
ThanXYoni
Did that work?
I would defiantly not tried that as a first choice.
I presume that only the character panel has Arabic on it.
What are the other panels in? English or Hebrew?
1st option try http://forums.adobe.com/thread/526990?start=0&tstart=0 Trashing preferences, probably will work.
2nd option If that doesn't help you can try http://www.indiscripts.com/post/2009/10/switching-indesigns-ui-language-in-windows but I'm not sure that will help either.
3rd option get in touch with WinSoft support. http://www.winsoft-international.com/en/support/support-contact.html That is presuming that you registered your product.
4th option do what Ariel suggested.
Let us know what happened and what did work.
Regards
Trevor -
How to store character in file and display result on front panel
hi
currently i m working on FPGA project.i want to aquired data from FPGA board.i want to know about how to store character to file and contineous display each character on front panel in string format.
i have complete up to character display on front panel but only single character display when i want all character in string format.
Solved!
Go to Solution.I don't see how this question is at all related to Digital I/O but it sounds like you just need a shift register with the concantanate string function.
-
HOw to compare column with column using JCheckBox
i have declare 4 JCheckBox which is a,b,c,d
How to compare this value with the one in the database?Hi
Say myCheckbox is the checkbox I want to test.
The example below uses its state to query the database:
String value;
Statement stmt;
ResultSet rset;
value = myCheckbox.isSelected() ? "Y" : "N";
stmt = conn.createStatement();
rset = stmt.executeQuery("select column2 from table where column2 = "+value);
In this case, the database colum is character, with the possibles values of Y or N.
hth
Luis Cabral -
I attempted to compare two strings whether they are equal or not. They should return true if both are equal.
One string is based on Taxonomy's Term (i.e. Term.Name) whereas other string is based on String object.
The problem is that both strings which seem equal return false instead of true. Both string values have different special characters though their special characters are & and &
Snapshot of different design & same symbols:
Is it due to different culture or language?
How to compare two strings whether both are equal while ignoring the difference in special characters (& vs &)?Hi Jerioon,
If you have a list of possible ambiguous characters the job is going to be easy and if (& vs &) are the only charracters in concern awesome.
You can use the below solution.
Before comparing pass the variables through a replace function to standarize the char set.
$Var = Replace($Var,"&","&")
This is going to make sure you don't end up with ambiguous characters failing the comparison and all the char are "&" in this case.
Similar technique is used to ignore Character Cases 'a' vs. 'A'
Regards,
Satyajit
Please “Vote As Helpful”
if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you. -
How to config Check Digits function module for Student Number Validation
Hi SLCM Experts,
In the SAP-SLCM, How to use check digits function module for validate student number. Just only config it or need to customizing program.
*Any idea to student number validation in SLCM?*
Best Regards,
Suvatchai K.Hi ,
Can you expalin it further ?
You configure the St. no in piq_matr . And set it as external or internal no. range which suits your business .
What is the validation you are looking for ?
Regards
Gajalakshmi -
How to compare result from sql query with data writen in html input tag?
how to compare result
from sql query with data
writen in html input tag?
I need to compare
user and password in html form
with all user and password in database
how to do this?
or put the resulr from sql query
in array
please help me?Hi dejani
first get the user name and password enter by the user
using
String sUsername=request.getParameter("name of the textfield");
String sPassword=request.getParameter("name of the textfield");
after executeQuery() statement
int exist=0;
while(rs.next())
String sUserId= rs.getString("username");
String sPass_wd= rs.getString("password");
if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
exist=1;
if(exist==1)
out.println("user exist");
else
out.println("not exist"); -
How do I authorize digital editions on my laptop? I have authorized it on my desktop PC without a hassle but now I can't transfer downloaded books from my laptop to my ereader.
Ererer1936 I would recommend posting your inquiry in the Adobe Digital Editions forum.
-
How to create a digital signature in adobe reader
how to create a digital signature in adobe reader?
Adobe Reader Touch (Windows Store app with "modern" UI) does not support any types of signatures yet.
Digital Signatures with certificates
Electronic Signatures (that are legally enforceable)
Signature annotations (hand-writing annotations which may not be secure and legally enforceable)
Adobe Reader XI (traditional desktop app with classic UI) supports #1 and #3.
Adobe EchoSign supports #2.
Adobe Reader for iOS/Android supports #3. -
How to compare the no. items in an order i ERP and CRM?
Hi SAP Experts,
We are facing an issue where the number of line items in an order(same order) in ERP and CRM are different , properly not synchronized.e.g., one order in ERP is having 5 line items but in CRM for the same order has 7 line items.
How to compare and identify the difference in number of line items in ERP and CRM for same orders?
Is there any report or tables , any other way?
Thanks in advance
Best Regards
SucchiYou can use transaction SDIMA for checking if data between crm and erp are synchronized. You can either run a Header comparison or Detailed comparison of the data. It is simple and easy to use. You can find more details here: http://help.sap.com/saphelp_crm70/helpdata/EN/49/2a5a1d6c7f3895e10000000a421937/frameset.htm
Or you can use report CRM_ODE_CHECK_DOC in CRM system to compare sales Documents between R/3 and CRM per transaction type/sales organization or even the transaction number. Also has got options to check transactions Not equal in CRM and R/3.
Regards. -
How to compare dates in Crystal Reports 2008
Hello,
I cannot figure out how to compare the dates in the Crystal reports.
I need all dates that are in the future to be displayed with the green font.
So in the formula for the font for this texbox I've tried to use different
formulas like:
If DateDiff("d", CurrentDate, {DevelopmentTracking_SELECT.Anticipated}) > 1
Then
crGreen
or
If {DevelopmentTracking_SELECT.Anticipated} > CurrentDate Then
crGreen
(where DevelopmentTracking_SELECT is the stored procedure, and Anticipated
is a date field).
None of them worked. All dates are treated like they were in the past
comparing to the CurrentDate. If I reverse these formulas like:
If {DevelopmentTracking_SELECT.Anticipated} < CurrentDate Then
crGreen
then all dates turn to green, otherwise they always stay black.
What could be a problem here?
I would appreciate your help.
Thank you.OK, got it, thank you. It worked.
However, I also need to use another field value which is not on the report, like this:
If CurrentFieldValue < CurrentDate And {DevelopmentTracking_SELECT.Completed} = False Then
crRed
DevelopmentTracking_SELECT.Completed is not on the report.
Is it possible to use it with the cross-tab? -
How to compare records in singe internal table
Hi Folks,
iam having 3 records in my first itab( T_FINAL) with fields
material no, descrip , mat type and group.
and 16 records in second itab(T_MVKE ) with fields
mat no , distri.chanel and division
now I want to fetch the records from T_MVKE by comparing the records in
T_FINAL .my requirement is to check the given mat no. in sales org.2000,2100. if yes then i have to consider 2000 only, if it is in only 2100 then consider 2100 only . is it is in 2000 only then consider 2100 only
my code is
LOOP AT T_FINAL.
READ TABLE T_MVKE WITH KEY MATNR = T_FINAL-MATNR.
IF SY-SUBRC = 0.
ON CHANGE OF T_MVKE-MATNR OR T_MVKE-VKORG.
IF T_MVKE-VKORG = '2000' and SY-TABIX > 1.
CONCATENATE '2000' 'TS' P_WERKS T_FINAL-MATNR INTO KEY.
ELSEIF T_MVKE-VKORG = '2000' AND SY-TABIX = 1.
CONCATENATE '2000' 'TS' P_WERKS T_FINAL-MATNR INTO KEY.
ELSE.
CONCATENATE '2100' 'TS' P_WERKS T_FINAL-MATNR INTO KEY.
ENDIF.
this logic fails ,. could tell me how to compare values in single itab?
Thanks
nehaHi ,
if i've understand you correctly , try that:
LOOP AT t_final.
AT NEW matnr.
CLEAR: v_2000, v_2100.
*1) 2000
READ TABLE t_mvke WITH KEY matnr = t_final-matnr
vkorg = 2000.
IF sy-subrc = 0.
v_2000 = 'X'.
ENDIF.
*2) 2100
READ TABLE t_mvke WITH KEY matnr = t_final-matnr
vkorg = 2100.
IF sy-subrc = 0.
v_2100 = 'X'.
ENDIF.
*compare
IF v_2000 = 'X' AND v_2100 = 'X'.
*read 2000 only
ELSEIF v_2000 = ' ' AND v_2100 = ' '.
*nothing found
ELSE.
*all other combinations
*read 2100 only
ENDIF.
ENDAT.
ENDLOOP.
regards Andreas -
How to compare values in table control
Hi Experts,
How to compare two values of a field in table control. Like the frist row of feld1 with the second row of field1.
because when ever two values are same i need to display error message that we are entring duplicate entry.
i have been tring for a very log time but not getting any solution for this.
Thanks and Regards,
Ashwin.you need to write in code for this..
A possible solution is given below..
Suppose your internal table fields are col1 and col2.
in the loop .....endloop of yout internal table in your PAI..there will be following(if your table control is made using wizard. otherwise you might have to add it..
loop at itab.
chain.
field col1.
field col2.
"some module
endchain.
endloop.
now make changes as shown to the above code..
loop at itab.
chain.
field wa-col1.
field wa-col2.
module table_modify on chain-request.
endchain.
now in your program add module table modify.
module table_modify input.
read table itab with key col1(which shud be unique) = wa-col1 transporting no-fields.
if sy-subrc = 0. " there exists another record with the same value
message e001(your message class).
endif.
endmodule.
i guess that shud work. get back if it dosnt.
regards
Suzie -
How do I layer digital backgrounds with photoshop elements 2011?
What do you mean by "layer digital backgrounds"? Can you explain a little more about what you're trying to do?
Maybe you are looking for
-
Anzeigefehler beim Adobe Reader 10.1.4 und bei Adobe Reader 11 aktuellste Version
Hallo zusammen, wir haben bei einem PC das Problem, das der Adobe Reader Anzeigefehler hat. Die Menüleiste mit Datei, Bearbeiten, usw. wird nicht angezeigt, genauso wie die Leiste, wo man das Fenster minimieren, maximieren und schließen kann. Auf dem
-
Why won't my iPhone 5s allow me to answer FaceTime calls on the new iOS 8.0.2?
In addition to my iPhone 5s not allowing me to answer any FaceTime calls, my iPad Air freezes the FaceTime screen and has to be restored to be able to use it again. My Macbook Pro freezes the FaceTime screen and the visual is always blurry. In additi
-
Final Cut Studio 2 and video app chaos
Hi, Did anyone find after installing Final Cut Studio 2 that their 3rd party apps to do with video extraction/conversion suddenly start to unexpectedly quit when in operation? It's a brand new MacPro, lovely machine until Final Cut software went and
-
My version of Preview 4.2 had stopped functioning. How do I install a later version compatible with Snow Leopard?
-
Hi there, I like to use SAP JRA within a JBoss Application Server, I use the rar-file provided by Web AS. I knew that there were other posts regarding this topic, but they did not really answer my question: The Thread JCO and JRA under JBoss says: u2