Problems with code autocompletion

Hello
I find new ABAP editor very useful. After installing  at office it started working properly without any special configuration. Unfortunately on two other machines (also XP, the same version of SAPGUI, configuration etc.) autocompletion and code expanding doesn't work. It displays suggested piece of code, but when enter is pressed (this is how it works at office) I get just new line. Default  key combination (ctrl - enter) doesn't work either. Anyone has any suggestion how to make it work?
best regards
Maciej Gottfried

Really never? Sometimes, it doesn't work because the where-used index has not been rebuilt (usually with SAP standard programs, from time to time with custom programs). You may rebuild it manually from SE38 menu (utilities, update navigation index) or from SE80 navigation tree (other functions, rebuild object list).
By the way, I tried code auto completion with my SAPGUI 7.10 SP 7 : TAB works! (but not ENTER as I said). Thanks Céline. Rob, yes I know, it was in 2009

Similar Messages

  • CND problem with code-completion

    Hi,
    First of all I don't really know where to put this post about C++ Pack in NetBeans. I've read one post in which someone suggests that this section will be pretty close...
    Maybe someone here would be so kind and try to help me...
    I'm using Ubuntu 7.04 and I have a problem with code completion in NetBeans 5.5.1 CND and I'm a little bit frustrated right now....
    I installed Netbeans, then CND, Created new C++ Project. Added new source file, with #include <GL/glut.h> directive.
    Whole code was compiled without errors, and that's fine.
    There were some problems with linking but I've added "glut", "GL", "GLU" string to linker parameters in Project Properties.
    The main problem is the code assistant. When I'm hitting "glut" and press ctrl+space it shows functions from glut library but when I type "gl" (to type "glColor3ub...") and try to show the code completion pop-up it shows "No suggestions". The same thing is with GLU library.
    I've installed GL, GLU, glut libraries (they all sit calmly in /usr/include/GL).
    I've added the /usr/include and /usr/include/GL to C++ section.
    I think that the Netbeans is able to find those *.h files because, as I said before, the glut (and the glX) functions are shown properly but there is no sign of "gl" and "glu" FUNCTIONS in code completion (the #define values specified in gl.h and glu.h are on the list, but the functions aren't)...
    I don't have idea why glut and glX are working fine, and gl and glu aren't... If anyone have similar problem, know where to look for an answer or have some suggestions I would be much obliged...
    I've seen Eclipse CDT, Anjuta, kDevelop, Code::Blocks, VIM + icomplete... after checking them all there is only one decision - I want to use NetBeans CND. It's user-friendly, fast and I just like it. That's why I would really like to know why the code-completion isn't working in 100%...

    Vladimir,
    The glColor3ub function declaration is in gl.h file (which along with glu.h is included in glut.h).
    Thanks Maxim,
    In the matter of fact since yesterday I've been looking for the reason why the GL and GLU aren't indexed properly by the Netbeans CC and I've found something.
    The GLU library was indexed after deleting
    #include <GL/gl.h>directive. So it means that the gl.h library is messing up.
    I've checked whole file (gl.h) and noticed that the only part which is in conflict with NetBeans is this one:
    #elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
    #  define GLAPI __attribute__((visibility("default")))
    #  define GLAPIENTRYI'm using GCC 4.1 so the expression value is 401, so the GLAPI define looks like the line above.
    gl.h is indexed properly by NetBeans when it is representing "extern", so it should look like
    #  define GLAPI externIt is working fine if you delete this part of gl.h or for example (which I've done) add predefined macro (or change the existing one)
    __GNUC_MINOR__=-200I know that it isn't very clean solution... I'm not happy with cheating NetBeans about the version of installed GCC but unfortunately I am not a specialist in GNU C so maybe someone would find more elegant solution.
    As far as I know the __attribute__ feature makes the GCC more verbose (warnings, errors) but I don't know how much functionality am I loosing in fact...
    Edit: Why the code tags aren't working? :/
    Message was edited by:
    Makula

  • Strange Problem with Code Groups / Codes

    Hey all, have a strange problem with Code Groups and Codes.
    Our data migration team accidentally loaded an early version of our catalog (code groups and codes) in to our 'Gold' configuration client. They then proceed to delete them all via transaction qs41. However, the code groups have been deleted, but not the codes.
    So, basically, no codes groups exist in table QPGR or QPGT but all the entries remain in QPCD with the assigment to code groups. The usage indicator is not set on the codes so why they did not get deleted with the codes groups is unknown.
    The issue that this is now causing us is that we can't recreate the codes groups with these codes assigned as the system thinks they already exist (via a check on table QPCD i would expect).
    Also, i have been unable to recreate what happened did in other clients... seems very strange.
    Any help appreciated.
    Cheers

    Ben,
    You could try SE11, and see if you can delete the records from there.. but I'm not hopeful...
    Otherwise you may need to write a quick ABAP program to delete the data base entries.
    PeteA

  • Problem with code

    hi all ! I hadd some problems with my code. I have some dates that should be ordered by the hour (hora) but its not. Now I know its not the SQL because I execute it with my sql control center and its just fine. SO it must be when I pass the data from one object to another.
    Here what I do:
    OK I think I got it. ITS NOT A SQL ERROR !!! or a table error !!! I executed the code using my sql control center and the result is ordered and correct. So it has to be something related to the code that saves the data. I save the data in a bean like this:
    public HashMap getCitasxfecha2(java.sql.Date fecha,String tipo) throws java.sql.SQLException
            BeanDatosCitas t = new BeanDatosCitas();
            HashMap m = new HashMap();
            ResultSet cdr = bd3.busquedaCitas2(fecha,tipo);
            java.sql.Time vector[]= new java.sql.Time[9999];
            System.out.println("salgo del busquedaCitas2");
            int id = 0;
            while (cdr.next())
            //String hora=convertir(cdr.getTime("Hora"));
             id = cdr.getInt("idCita");
                t = new BeanDatosCitas(
                id,                             // Nos servir� como identificador en la tabla HashMa
                cdr.getDate("Fecha"),
                cdr.getTime("Hora"),
                cdr.getString("Protocolo"),
                cdr.getString("DNI"),
                cdr.getString("Opcion"),
                cdr.getString("Observacion"),
                cdr.getString("Horaentrada"),
                cdr.getString("Nombres"),
                cdr.getString("Apellidos"),
                cdr.getString("Prescriptor"),
                cdr.getString("Mutua"),
                cdr.getInt("Sesigast"),
                cdr.getInt("Sesifaltantes"),
                cdr.getString("Tipo"),
                0
                m.put(new Integer(id), t);
            numFilas = m.size();
            return m;
        }Then I do a:
    respuesta = bBDCit.getCitasxfecha2(datNac,tipo);
            int nFilas2 = bBDCit.getNumFilas();
            Collection tabla2 = respuesta.values();
            request.setAttribute("citas_diarias",tabla2); And in my JSP I do:
    <c:forEach var="fila" items="${requestScope.citas_diarias}">it seems like in any part of this code the error happens. What could it be?
    Thanks again!

        public java.util.List getCitasxfecha2(java.sql.Date fecha,String tipo) throws java.sql.SQLException
            BeanDatosCitas t = new BeanDatosCitas();
            java.util.List list = new java.util.ArrayList();
            ResultSet cdr = bd3.busquedaCitas2(fecha,tipo);
            java.sql.Time vector[]= new java.sql.Time[9999];
            System.out.println("salgo del busquedaCitas2");
            int id = 0;
            while (cdr.next())
                //String hora=convertir(cdr.getTime("Hora"));
                id = cdr.getInt("idCita");
                t = new BeanDatosCitas( id,
                            // Nos servir� como identificador en la tabla HashMa
                    cdr.getDate("Fecha"),
                    cdr.getTime("Hora"),
                    cdr.getString("Protocolo"),
                    cdr.getString("DNI"),
                    cdr.getString("Opcion"),
                    cdr.getString("Observacion"),
                    cdr.getString("Horaentrada"),
                    cdr.getString("Nombres"),
                    cdr.getString("Apellidos"),
                    cdr.getString("Prescriptor"),
                    cdr.getString("Mutua"),
                    cdr.getInt("Sesigast"),
                    cdr.getInt("Sesifaltantes"),
                    cdr.getString("Tipo"),
                    0
                list.add(t);
            numFilas = list.size();
            return list;
            int nFilas2 = bBDCit.getNumFilas();
            Collection tabla2 = bBDCit.getCitasxfecha2(datNac,tipo);
            request.setAttribute("citas_diarias",tabla2);That should just about cover it. The JSP can stay the same.

  • Problem with Textfield autocomplete -- only uses the INSTR function

    Hi dev team,
    I use the new APEX "textfield autocomplete" item type and got a really damn problem with it.
    I have a table with an index on the same column which I want to search with the autocomplete field.
    Index:
    CREATE BITMAP INDEX TEST.GEO_DATA_IDX1 ON TEST.GEO_DATA (postcode)
    NOLOGGING TABLESPACE TS_INDEX;Select which is automatically generated by APEX 4:
    SELECT   a.*
      FROM   (  SELECT   DISTINCT postcode AS RV
                  FROM   TEST.GEO_DATA
                 WHERE   country_id = :P1_COUNTRY
              ORDER BY   1) a
    WHERE   INSTR ("RV", :p$_search_string) > 0 AND ROWNUM <= :p$_max_rows;
    -- plan
    Plan
    SELECT STATEMENT  ALL_ROWSCost: 4,308  Bytes: 45,31  Cardinality: 1,97            
         2 SORT UNIQUE  Cost: 4,307  Bytes: 45,31  Cardinality: 1,97       
              1 TABLE ACCESS FULL TABLE #TABLE# Cost: 4,306  Bytes: 47,311  Cardinality: 2,057  In APEX 3 I used the addon from Tyler Muth with my own Select:
    SELECT   DISTINCT
                postcode AS DV,
                postcode AS RV
         FROM   TEST.GEO_DATA
         WHERE   country_id = L_COUNTRY
         AND    postcode like l_search||'%'
         ORDER BY 1
    -- Plan
    SELECT STATEMENT  ALL_ROWSCost: 840  Bytes: 152,867  Cardinality: 13,897                                
         8 SORT ORDER BY  Cost: 840  Bytes: 152,867  Cardinality: 13,897                           
              7 HASH UNIQUE  Cost: 838  Bytes: 152,867  Cardinality: 13,897                      
                   6 VIEW VIEW index$_join$_001 Cost: 836  Bytes: 232,111  Cardinality: 21,101                 
                        5 HASH JOIN            
                             2 BITMAP CONVERSION TO ROWIDS  Cost: 31  Bytes: 232,111  Cardinality: 21,101       
                                  1 BITMAP INDEX RANGE SCAN INDEX (BITMAP) #INDEX#
                             4 BITMAP CONVERSION TO ROWIDS  Cost: 45  Bytes: 232,111  Cardinality: 21,101       
                                  3 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) #INDEX#Is there a chance getting my INDEX used by the new APEX item? I guess not. But I still want to ask before I rebuild everything. :)
    Best regards,
    Tobias

    Hi Tobias,
    I assume you are currently using "Contains & Case Sensitive" for the "Search" attribute. Have you already tried out "Exact & Case Sensitive"? Because that will internally use the LIKE operator as your original query does and because the % is at the end it should enable the use of an index. But it might still not work, because the ORDER BY might be executed at a different time than in your original example, but it's worth a try.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • AP 2602 Problem with Code 7.4.100.60

    Hi at all,
    I have problems with the code 7.4.100.60 and 2602 AP´s.
    The AP´s stops delivering services and no client can connected to them. After a reboot
    all problems are solved, but this problem comes back every ten days.
    In the logs are only shown a disconnect from these AP´s on the controller.
    On the AP´s is nothing to find.
    Is this a known problem? Is there a workaround available?
    Thanks in advance,
    Mario

    Hello Mario,
    As per your query i can suggest you the following solution-
    Please check the powering options-
    • 802.3af Ethernet Switch
    • Cisco AP2600 Power Injectors (AIR-PWRINJ4=)
    • Cisco AP2600 Local Power Supply (AIR-PWR-B=)
    and Power Draw
    AP2600: 12.95W
    Note: When deployed using Power over Ethernet (PoE), the power drawn from the power sourcing equipment will be higher by some amount depending on the length of the interconnecting cable. This additional power may be as high as 2.45W, bringing the total system power draw (access point + cabling) to 15.4W.
    Hope this will help you.

  • Problem with code-Please Help!!!

    Hey guys i have some problems with the following code:
    1. I have to do a stutter and reverse of an array [ 2 4 ] and it should return [ 4 4 2 2 ]. I wrote the code and i get [ 2 2 4 4]. How can this be fixed?
    public class Part1
         public static void main(String[] args)
              int[] values = {2, 4};     
              stutterAndReverse(values);
         public static int[] stutterAndReverse(int[] values)
              //Stutter
              System.out.print("[ ");
              for (int i = 0; i < values.length; i++)
                   for(int j = values.length-1; j >=0; j--)
                        System.out.print(values[i] + " ");
              System.out.print("] ");
              return values;
    2. This one takes the array and returns the even numbers to the left and odds to the right. It works with the code i have so far but the odds on the right should be in order. For example an array of 6 gives the output [2, 4, 6, 5, 3, 1]. Mine gives [2, 4, 6, 1, 5, 3]. How can i fix this???
    public class Part2
         public static void main(String[] args)
              int[] arr = new int[6];
              for(int i = 0; i < arr.length; i++)
              arr[i] = i + 1 ;
              printArray(arr);
              arr = evensToLeft(arr);
              //arr = oddsToRight(arr);
              System.out.println("Evens to the Left");
              printArray(arr);               
         public static void printArray(int[] arr)
              System.out.print("[");
              for(int i = 0; i < arr.length; i++)
                   System.out.print(arr);
                   if(i < arr.length-1)
                   System.out.print(", ");
                   System.out.println("]");
         public static int[] makeArray(int n)
              int[] arr = new int[6];
              return arr;          
         public static int[] evensToLeft(int[] arr)
              int split = 0;
              for(int i = 0; i < arr.length; i++)
                   if(arr[i]%2==0) //even
                        swap(arr,i,split);
                        split++;
                   return arr;
         public static void swap(int[] arr, int n1, int n2)
              int temp = arr[n1];
              arr[n1] = arr[n2];
              arr[n2] = temp;
    Thank you for your time i really appreciate it.

    now i'm more confused than ever...:(This'll probably make it worse :)
    class Testing
      public Testing()
        String[] values1 = {"2","4"};
        System.out.println(java.util.Arrays.asList(values1));
        System.out.println(java.util.Arrays.asList(stutterAndReverse(values1)));
        String[] values2 = {"1","2","3","4","5","6","7","9","11"};
        System.out.println(java.util.Arrays.asList(values2));
        System.out.println(java.util.Arrays.asList(evensOdds(values2)));
      public String[] stutterAndReverse(String[] arr)
        String[] temp = new String[arr.length * 2];
        for(int x = 0; x < temp.length; x++)
          temp[temp.length - 1 -x] = arr[x/2];
        return temp;
      public String[] evensOdds(String[] arr)
        StringBuffer evens = new StringBuffer();
        StringBuffer odds = new StringBuffer();
        for(int x = 0; x < arr.length; x++)
          if(Integer.parseInt(arr[x]) % 2 == 0) evens.append(","+arr[x]);
          else odds.insert(0,","+arr[x]);
        return (evens.toString().substring(1)+odds.toString()).split(",");
      public static void main(String[] args){new Testing();}
    }

  • Problem With Code/Design View Buttons

    (My bad...perhaps a more clear title will help...)
    OK, I am working with DW CS4 v.10.0 Build 4117 on a Win XP Pro SP3 platform.
    When working with my site files, they open in Code view.  The Split and Design buttons are grayed out.  When I click on the Layout button, the checkmark is sometimes next to the Code option, but sometimes next to the Design option (even though the page is clearly displayed only in Code view!).
    In order to view the file in Design view or Split view, I have to click the Layout button, Click on Code, click on the Layout button again, click on Design or Split View and then it will show the page file in that manner.
    This is SO frustrating!  Is this a bug in CS4?  (I scanned through the other topics and can't seem to find anything about this.)  I don't remember having this problem with CS3 and have spoken with other DW CS3 users who also say they have never had this happen.
    What can I do?
    Thanks in advance for any assistance you can provide.
    Susan

    OK, all of my site page files are .php extensions.
    Here is the code from one of my pages.
    <?php require_once('Includes/RandomizerInside.inc'); ?>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Gerald R. Ford International Airport</title>
    <link href="Includes/style.css" rel="stylesheet" type="text/css">
    <?php require_once('Includes/MetaInformation.inc'); ?>
    <?php require_once('Includes/JavaScriptInside.inc'); ?>
    <?php require_once('Includes/CommonJs.inc'); ?>
    </head>
    <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <script language="JavaScript1.2">mmLoadMenus();</script>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr bgcolor="#00306c">
            <td colspan="2"><img src="NavImages/i-header1.jpg" width="760" height="96"></td>
        </tr>
        <tr>
            <td width="185" valign="top" bgcolor="<?php echo"$bg_color"; ?>">
       <?php require_once('Includes/InsidePageNav.inc'); ?>
      </td>
            <td rowspan="2" valign="top" bgcolor="#FFFFFF">
       <table width="100%"  border="0" cellspacing="0" cellpadding="10">
        <tr>
         <td>
          <!-- PAGE CONTENT GOES HERE -->
          <!-- This is the only section you can make changes to -->
          <p align="right" class="PageTitle">NEWSROOM<br><img src="NavImages/spacer.gif" width="555" height="1"></p>
          <p class="BodyCopy"><a href="Pubs.php">Airport Publications</a> | <a href="PR.php">Press Releases</a></p>
          <p class="BodyCopy">To stay current on the latest GFIA news, bookmark this page and revisit it often.</p>
          <p class="BodyCopy">The GFIA Newsroom contains electronic copies
                 of <a href="Pubs.php#1"><i>Airport Connections</i></a>, the airport's quarterly newsletter, financial reports, and more.</p>
          <p class="BodyCopy">Members of the press should
                  be sure to visit the <a href="Media.php">media information</a> page for contact phone numbers and other valuable resources.</p></td>
        </tr>
       </table>
      </td>
        </tr>
        <tr>
            <td bgcolor="<?php echo"$bg_color"; ?>" style="vertical-align:bottom"><img src="NavImages/i-navimage<?php echo"$random_number"; ?>.jpg" width="185" height="300"></td>
        </tr>
        <tr>
            <td colspan="2">
       <?php require_once('Includes/Footer.inc'); ?>
      </td>
        </tr>
    </table>
    </body>
    </html>
    Any and all assistance will be GREATLY appreciated!
    Susan

  • Problem with code: reading a string

    Hi,
    I am very new to java so excuse my naivety. i need to write some code which will decode an encrypted message. the message is stored as a string which is a series of integers which. Eg. Nick in this code is 1409030110 where a = 1, b = 2,... and there is a 0 (zero) after every word. at the moment the code only goes as far as seperating the individual characters in the message up and printing them out onscreen.
    Heres the code:
    int index = 0;
    while(index < line.length() - 1) {
    char first = line.charAt(index);
    char second = line.charAt(index + 1);
    if(second == 0) {
    char third = line.charAt(index + 2);
    if(third == 0) {
    System.out.print(first + "" + second);
    index = index + 3;
    else {
    System.out.print(first);
    index = index + 2;
    else {
    System.out.print(first + "" + second);
    index = index + 3;
    Basically its meant to undo the code by reading the first two characters in the string then determining whether the second is equal to 0 (zero). if the second is 0 then it needs to decide whether the third character is 0 (zero) because the code could be displaying 10 or 20. if so the first two characters are recorded to another string and if not only the first is recorded. obviously if the second character is not a zero then the code will automatically record the first 2 characters.
    my problem is that the code doesnt seem to recognise the 0 (zero) values. when i run it thru with the string being the coded version of Nick above (1409030110) the outputted answer is 1490010 when it should be 149311. as far as i can see the code is right but its not working! basically the zeros are begin removed but i need each group of non-zero digits to be removed seperately so i can decode them.
    if anyone has understood any of this could you give me some advice, im at my wits end!
    Thanks, Nick

    Try something like this:
    import java.io.FileInputStream;
    import java.io.InputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class SimpleDecoder
        /** Default mapping file */
        public static final String DEFAULT_MAPPING_FILE = "SimpleDecoder.properties";
        /** Regular expression pattern to match one or more zeroes */
        public static final String SEPARATOR = "0+";
        private Properties decodeMapping = new Properties();
        public static void main(String [] args)
            try
                SimpleDecoder decoder = new SimpleDecoder();
                decoder.setDecodeMapping(new FileInputStream(DEFAULT_MAPPING_FILE));
                for (int i = 0; i < args.length; ++i)
                    System.out.println("Original encoded string: " + args);
    System.out.println("Decoded string : " + decoder.decode(args[i]));
    catch (Exception e)
    e.printStackTrace();
    public void setDecodeMapping(InputStream stream) throws IOException
    this.decodeMapping.load(stream);
    public String decode(final String encodedString)
    StringBuffer value = new StringBuffer();
    String [] tokens = encodedString.split(SEPARATOR);
    for (int i = 0; i < tokens.length; ++i)
    value.append(this.decodeMapping.getProperty(tokens[i]));
    return value.toString();
    I gave your "1409030110" string on the command line and got back "nick". The SimpleDecoder.properties file had 26 lines in it:
    1 = a
    2 = b
    3 = c
    // etc;Not a very tricky encryption scheme, but it's what you asked for. - MOD

  • Problems with IE autocomplete on faces ssl sites

    We have a SSL secured web application, running java server faces (richfaces).
    We have the following problem:
    On some sites form input fields get not autocompleted by the Internet Explorer's autocompletion - not to be confused here with the faces autocompletion mechanism.
    Internet Explorer seems to store already entered input values for only some sites. On some sites it works, on some not.
    The interesting thing is the following: On sites where the URL displayed in Internet Explorer's address bar is in fact the actual page the autocompletion works. Though on sites where the URL in the address bar is not the actual page (due to faces actionMethod mechanism) it doesn't work.
    Has anyone here similiar experiences? We could really need some help on this, we have put some effort into solving this problem and haven't succeed so far.
    best regards

    Problem solved.
    For anyone who might be interested:
    As described in the former post, the problems occurs because the URL in the address bar does not match the actual displayed site.
    To fix it, configure a redirect for the action in the faces-config:
    <navigation-case>
    <from-outcome>some.outcome</from-outcome>
    <to-view-id>some_site.xhtml</to-view-id>
    <redirect/>
    </navigation-case>
    Since now a redirect is sent make sure to test your scenario for possible side effects.
    best regards

  • Problem with code need a little help

    change it and still comes up the same don;t understand what is wronge with it. new in codeing using dreamweaver c5
             Line 39,        Column 35:     document type does not allow element "div" here; assuming missing "object" start-tag    
    <div id="google_translate_element"><script type="text/javascript">
             Line 44,        Column 9:     end tag for "div" omitted, but OMITTAG NO was specified    
    </object></head>
    ✉  
             Line 39,        Column 1:     start tag was here    
    <div id="google_translate_element"><script type="text/javascript">
             Line 73,        Column 94:     required attribute "alt" not specified    
    …"><a href="index.html"><img src="bs2.jpg" width="97" height="109" /></a>   </p>

    1) It looks like you may have a <div> tag in your <head></head> section of the pages code which surrounds a <javascript> tag and its not allowed in there.
    2) You have missed out the alt="" on the image:
    img src="bs2.jpg" width="97" height="109" alt="Description here"/>
    Change this:
    <div id="google_translate_element"></div><script type="text/javascript">
    function googleTranslateElementInit() {
      new google.translate.TranslateElement({pageLanguage: 'en', autoDisplay: false}, 'google_translate_element');
    </script>
    To this:
    <script type="text/javascript">
    function googleTranslateElementInit() {
      new google.translate.TranslateElement({pageLanguage: 'en', autoDisplay: false}, 'google_translate_element');
    </script>

  • Simple problem with  code

    whenever i try running my code i get a error message and it has to do with this part of the code
    public int cmd()
        footballer.footComp()=0;
        Collections.sort(xList);
        return  footballer.getFootComp();
    the method being called is in another class called Footballer, which has the the method footComp()
    public static int getFootComp()
        return footComp;
    where footComp has also been declared static in the Footballer class
    private static int footComp = 0;
    this is the error message i get :
    required: variable
    found : value
    thanks for ur help in advance

    pls how do i do that?You don't know how to pass a method to a parameter? You don't know how to use that parameter to set footComp?
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.

  • Error message and problem with code

    Hi all,
    I have a code that i need to print the total
    ie: retail multiplied by the quantity entered
    this is what I have written
    but when compiling error message is (not a statement )
    any tips appreciated
    or is this part of the code completely wrong???
    Remembering that I have 4 arrays in the code
    paul
    System.out.println((input_part +"\t"+ "\t" + qty[input_part-1]+"\t"+ "\t"retail[input_part-1]+"\t"+ "\t" + "\n");
    or is this more appropriate??
    total=(quantity*cost);
    System.out.println("Total Retail is:" + total);
    But with this i get error
    Operator * cannot be applied to int, double[]
    total=(quantity*cost);

    System.out.println((input_part +"\t"+ "\t" + qty[input_part-1]+"\t"+
    "\t"retail[input_part-1]+"\t"+ "\t" + "\n");Look at what comes before "retail" in your code sample, and after the "\t" that immediately preceeds it. Should there really be nothing between those two values?
    But with this i get error
    Operator * cannot be applied to int, double[]
    total=(quantity*cost);It's telling you that you can't apply the operator * (multiplication) to an integer and an array.
    Did you really think that you'd be able to multiply a number by an array?
    Perhaps you meant to do something like
    total = quantity * cost[lastElt];

  • Please Tell Me what is the problem with code

    Dear all,
    As you can see from the attached vi(pictures) after the "home.vi"  nothing happens, after the home.vi both DAQ's and motor controller's vi are not working. Could you pls help me to find a solution about the problem.
    Waiting response.
    Thanks,
    Best regards.
    Solved!
    Go to Solution.
    Attachments:
    WhatistheProblem.png ‏123 KB
    Problem2ndCase.png ‏94 KB
    Motor-LoadReadNew.vi ‏52 KB

    Dear dkfire,
    Firstly thanks alot for your solution, now two loops are working paralel with no problem. But i dont understand what you want to mean with the greedy loop. I need to made 2 loops in order to apply "wait.vi" only to the motor vis. Otherwise the DAQ's vis and motor's drivers vis locate at the same loop which means  DAQ also waits while the motor is waiting. I want DAQ to take samples continuously without waiting. If i put wait.vi to the false structure as you said, then this will make DAQ wait too which is unacceptable. So now it takes my PC's all power?
    Kind Regards,
    Waiting forward for your kind reply.

  • Free films problem with code

    I'm having problems getting into the privilege plus app. I get a code from the xperia lounge use it to sign up in privilege plus but it says code not valid for redemption. So basically I'm stuck. Joke is it worked once but then when I went back into p plus it was asking for the code again and now it doesn't work. Any ideas?

    You should contact xperia care as they handle this kind of stuff:
    http://www.sonymobile.com/global-en/support/contact-us/

Maybe you are looking for