Help with Modifying Existing code

Hi All
I have been sucessfully using a piece of code kindly provided by Jack Dahlgren some years ago.  However I have a need to slightly modify it.  I only want to add the previous Outline Level value (not all of the previous ones).  I am struggling
with this one and need spome help.  Here is the code:
Sub summaryname()
'This Macro will create the entire "Path" to a specific task by adding together the
'names of all the parent tasks. It is useful when 'you have many commonly named substasks
'and want to know where in the heirarchy they reside. As written, this places the "path" in the
'Text12 custom field. You could alternately put this into the task name field itself, however
'that may make the names rather long
'Copyright Jack Dahlgren, March 2002
Dim mystring As String
Dim mytask As Task
Dim myoutlinelevel As Integer
myoutlinelevel = 1
While myoutlinelevel < 10
For Each mytask In ActiveProject.Tasks
    If Not (mytask Is Nothing) Then
        If mytask.Text12 = "" Then
            If mytask.OutlineLevel = myoutlinelevel Then
                mytask.Text12 = mytask.OutlineParent.Text12 & " | " & mytask.Name
            End If
        End If
    End If
Next mytask
myoutlinelevel = myoutlinelevel + 1
Wend
MsgBox ("Customised Task List Names have been built for each task " & vbCrLf & "and are contained in Field Text12." & vbCrLf & vbCrLf & "This text field is used to build individual Task Reports for " & vbCrLf
& "workstream resources." & vbCrLf & vbCrLf & "PLEASE DO NOT MODIFY.")
End Sub
Many thanks in anticipation.
Tony
TKHussar

Hi Jan
Thanks for your prompt response.  The code from FAQ37 is what is used initially.  However when I try and produce individual task lists nothing is output from Ass.Text5.  My code is below:
For Each Res In ActiveProject.Resources
    If Res.Assignments.Count > 0 Then
        Row = 5
        XlApp.Workbooks.Open ("D:\Task List Templates\Task List Template.xlsm")
        BookNam = XlApp.ActiveWorkbook.Name
        Set s = XlApp.Workbooks(BookNam).Worksheets(1)
        For Each Ass In Res.Assignments
            Set xlRange = s.Range("A5")
            If Ass.PercentWorkComplete < 100 Then
                    With xlRange
                        rName = Ass.ResourceName
                        s.Range("A" & Row).Value = Ass.ResourceName
                        s.Range("B" & Row).Value = Ass.TaskUniqueID
                        s.Range("C" & Row).Value = Ass.Text5
                        s.Range("D" & Row).Value = Ass.TaskName
                        s.Range("E" & Row).Value = Ass.Start
                        s.Range("G" & Row).Value = Ass.Finish
                    End With
            End If
            Row = Row + 1
            Set xlRange = xlRange.Offset(Row, 0)  'Point to next row
        Next
        XlApp.Visible = True
        Application.DisplayAlerts = False
        If rName = "" Then
            GoTo NextOne
        End If
        XlApp.ActiveWorkbook.SaveAs FileName:= _
            "D:\Task List Templates\Task Lists\" & rName & ".xlsm", FileFormat:= _
            xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
        rName = ""
        XlApp.ActiveWorkbook.Close savechanges:=False
        Application.DisplayAlerts = True
    End If
NextOne:
Next
However when I export to excel everything else I need gets exported perfectly but not the a.Text5 values.  When I check the Task Usage view and add the Text5 column the value is there but only against the Resource name and not the task name.  Hope
that makes sense.
Thanks
Tony
TKHussar

Similar Messages

  • Need help with a activation code for Adobe Acrobat X Standard for my PC,, Don't have older version serial numbers,  threw programs away,  only have Adobe Acrobat X Standard,  need a code to unlock program?

    Need help with a activation code for Adobe Acrobat X Standard for my PC, Don't have older Version of Adobe Acrobat 9, 8 or 7. 

    You don't need to install the older version, you only need the serial number from your original purchase. If you don't have them to hand, did you register? If so, they should be in your Adobe account. If not you really need to contact Adobe, though it isn't clear they will be able to do anything without some proof of purchase etc.

  • How to modify existing code of SQVI report?

    Hi Expert,
       There is a SQVI report which has already been created but we need to change the one for new requirement.
    is there any way to modify existing code for new requirement?
    Can we edit in abap workbench?
    Thanks & Regards
    Savita

    Savita,
    You can not modify SQVI system generated code. You need to go to SAVI change mode and make modifications. If your requirement is a sort of additional fields or inserting come code into the program , then SQVI is not the choice. You need to use Infoset Queries (SQ03, SQ02, Sq01).
    KJogeswaraRao

  • HT3209 Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work

    Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work

    You will need to contact the movie studio that produced the DVD and ask if they can issue you a new code valid for Canada. Apple cannot help you, and everyone here in these forums is just a fellow user.
    Regards.

  • Help with basic ABAP code (merge internal tables, sort of...)

    Hello,
    Can someone please help write some basic code for a Basis guy with limited ABAP knowledge?
    Should be some easy points for an experienced ABAPer!
    I have identicaly structured internal tables I_A and I_B and I_C which have already been filled by function models I called.
    How will I code the following?:
    I want to read all the data of I_A into a new internal table I_MASTER (structured the same as I_A,I_B and I_C).
    Then I want to read I_B and:
    1)Update I_MASTER with NEW records
    2)Update existing records if the value of field MYFIELD in I_B is smaller than the value of MYFIELD in I_MASTER.
    Then I want to read I_C and:
    1)Update I_MASTER with NEW records
    2)Update existing records if the value of field MYFIELD in I_C is smaller than the value of MYFIELD in I_MASTER.
    Let me know if I can provide anymore information.
    Thanks in advance for you help!
    Adriaan
    Message was edited by: Adriaan
    Message was edited by: Adriaan

    Hi Adriaan ,
    I want to read all the data of I_A into a new internal table I_MASTER (structured the same as I_A,I_B and I_C).
    <b>i_master[] = i_a[] .</b>
    loop at i_b .
    read table i_master with key myfiled < i_b-myfield .
    if sy-subrc = 0 .
    append i_master from i_b .
    endif.
    endloop.
    loop at i_c .
    read table i_master with key myfiled < i_c-myfield .
    if sy-subrc = 0 .
    append i_master from i_c .
    endif.
    endloop.
    Let me know if this helped .
    Regards,
    Varun .
    Message was edited by: varun sonu

  • Help for Modifying the Code for display a 7 column table

    Hi,
    Is someone can help me to modify that code I have a 7 colomn table and as many row as their is results?
    Right now, All my result are in a 1 colomn table and and 1 row,
    thanks,
    Roseline
    DECLARE
      vtemp  varchar2(4000) DEFAULT ' ';
    BEGIN
      htp.p('<HTML>');
      htp.p('<HEAD>');
      htp.p('<TITLE>DISQUES C</TITLE>');
      htp.p('</HEAD>');
      htp.p('<BODY>');
    FOR idx IN
        SELECT DVD_ID, NomFichier,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier  ASC) AS rna,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
          FROM elements
         WHERE PROJET_ID = 1
      ORDER BY DVD_ID ASC, rna ASC
          loop
            IF idx.rna = 1
            then
              htp.p('<TABLE>');
              htp.p('<TR>');
              htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
              htp.p('</TR>');
              htp.p('<TR>');
            end IF;
            vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
            IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
            then
              htp.p(vtemp);
              vtemp := ' ';
            end IF;
            IF idx.rnd = 1
            then
              htp.p('</TR>');
              htp.p('</TABLE>');
            end IF;
          end loop;
    htp.p('</BODY>');
    htp.p('</HTML>');
    end;

    Sorry:
    I have a table contening PROJECT ID, DVD ID and FILES NAME (NomFIchier) that are on the DVD.
    In my page result, I want the list of the DVD from a project with the following formatting ( 7 columns table), using PL/SQL.
    1 DVD can contain from 5000 files
    ex:
    Ex:
    select DVDNAME, NomFichier  fromTABLE where project = 2
    *85*
    2635080     2636608     2637084     2637091     2637092      2637093     2637147  
    2637152     2637153     2637154     2637155     2637156      2637157     2637164      
    *86*
    2639497     2639498     2639502     2639504     2639505     2639506     2639507  
    2639508     2639509     2639511     2639512     2639519     2639521     2639522        
    *******     *******     *******     ********    *********    ********    ******** With this code following code,
    DECLARE
      vtemp  varchar2(4000) DEFAULT ' ';
    BEGIN
      htp.p('<HTML>');
      htp.p('<HEAD>');
      htp.p('<TITLE>DISQUES C</TITLE>');
      htp.p('</HEAD>');
      htp.p('<BODY>');
    FOR idx IN
        SELECT DVD_ID, NomFichier,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier  ASC) AS rna,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
          FROM elements
         WHERE PROJET_ID = 1
      ORDER BY DVD_ID ASC, rna ASC
          loop
            IF idx.rna = 1
            then
              htp.p('<TABLE>');
              htp.p('<TR>');
              htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
              htp.p('</TR>');
              htp.p('<TR>');
            end IF;
            vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
            IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
            then
              htp.p(vtemp);
              vtemp := ' ';
            end IF;
            IF idx.rnd = 1
            then
              htp.p('</TR>');
              htp.p('</TABLE>');
            end IF;
          end loop;
    htp.p('</BODY>');
    htp.p('</HTML>');
    end;I have the following result
    85
    2635080      2636608      2637084      2637091      2637092      2637093      2637147      2637152      2637153      2637154      2637155      2637156      2637157      2637164      2637169      2637170      2637172      2637173      2637202      2637203      2637213      2637214      2637215      2637216      2637217      2637218      2637219      2637220      2637234      2637235      2637236      2637237      2637239      2637240      2637241      2637242      2637244      2637246      2637247      2637249      2637250      2637251      2637252      2637253      2637257      2637263      2637266      2637269      2637270      2637274      2637276      2637279      2637284      2637290      2637291      2637292      2637293      2637294      2637295      2637296      2637301      2637303      2637304      2637305      2637306      2637311      2637320      2637322      2637324      2637331      2637333      2637336      2637352      2637353      2637354      2637358      2637359      2637360      2637361      2637362      2637363      2637364      2637371      2637378      2637383      2637384      2637385      2637386      2637387      2637388      2637391      2637392      2637395      2637400      2637405      2637412      2637418      2637419      2637423      2637443      2637446      2637453      2637461      2637470      2637483      2637484      2637485      2637494      2637502      2637506      2637507      2637519      2637532      2637536      2637537      2637539      2637540      2637541      2637544      2637553      2637554      2637555      2637557      2637575      2637578      2637579      2637580      2637581      2637582      2637583      2637587      2637588      2637589      2637590      2637591      2637592      2637593      2637594      2637595      2637597      2637604      2637605      2637606      2637611      2637619      2637628      2637629      2637630      2637631      2637632      2637633      2637637      2637645      2637647      2637648      2637650      2637651      2637657      2637658      2637659      2637661      2637662      2637668      2637674      2637676      2637677      2637679      2637680      2637681      2637684      2637685      2637686      2637688      2637689      2637691      2637692      2637694      2637696      2637700      2637701      2637702      2637703      2637704      2637705      2637706      2637707      2637722      2637725      2637741      2637749      2637751      2637752      2637753      2637762      2637764      2637771      2637777      2637779      2637781      2637783      2637785      2637789      2637793      2637809      2637810      2637811      2637812      2637823      2637827      2637836      2637837      2637838      2637845      2637850      2637854      2637855      2637857      2637858      2637859      2637860      2637861      2637866      2637867      2637870      2637874      2637875      2637876      2637877      2637878      2637879      2637880      2637881      2637884      2637885      2637886      2637887      2637891      2637892      2637893      2637894      2637895      2637897      2637898      2637899      2637900      2637901      2637902      2637904      2637906      2637907      2637908      2637909      2637913      2637914      2637916      2637917      2637918      2637919      2637920      2637921      2637923      2637926      2637928      2637929      2637930      2637933      2637935      2637936      2637937      2637939      2637940      2637941      2637942      2637943      2637949      2637950      2637951      2637952      2637954      2637955      2637958      2637965      2637967      2637969      2637970      2637971      2637973      2637978      2637985      2637986      2637987      2637990      2637991      2637992      2637993      2638001      2638002      2638005      2638007      2638009      2638016      2638018      2638020      2638023      2638027      2638029      2638033      2638034      2638035      2638036      2638039      2638043      2638044      2638045      2638046      2638048      2638049      2638052      2638053      2638055      2638057      2638058      2638063      2638064      2638065      2638067      2638068      2638069      2638072      2638076      2638080      2638081      2638082      2638083      2638084      2638087      2638089      2638096      2638097      2638098      2638099      2638100      2638101      2638102      2638103      2638105      2638106      2638108      2638110      2638113      2638117      2638118      2638120      2638121      2638122      2638124      2638126      2638128      2638134      2638135      2638136      2638137      2638139      2638140      2638141      2638143      2638146      2638147      2638148      2638149      2638150      2638151      2638152      2638153      2638154      2638155      2638157      2638159      2638167      2638168      2638172      2638173      2638174      2638175      2638181      2638184      2638185      2638187      2638192      2638193      2638198      2638199      2638200      2638202      2638203      2638205      2638207      2638208      2638209      2638210      2638211      2638212      2638214      2638218      2638219      2638220      2638221      2638223      2638230      2638232      2638236      2638243      2638245      2638246      2638247      2638248      2638258      2638264      2638265      2638268      2638279      2638280      2638281      2638283      2638284      2638287      2638305      2638309      2638310      2638311      2638312      2638316      2638317      2638318      2638319      2638321      2638324      2638330      2638331      2638332      2638333      2638334      2638335      2638336      2638337      2638338      2638339      2638340      2638341      2638342      2638344      2638347      2638349      2638352      2638353      2638364      2638372      2638374      2638376      2638379      2638390      2638391      2638392      2638393      2638394      2638395      2638402      2638405      2638407      2638414      2638421      2638422      2638429      2638430      2638432      2638434      2638438      2638442      2638444      2638457      2638467      2638469      2638474      2638478      2638479      2638480      2638484      2638486      2638488      2638489      2638491      2638506      2638507      2638508      2638510      2638511      2638512      2638513      2638514      2638515      2638516      2638517      2638518      2638519      2638520      2638521      2638522      2638523      2638525      2638527      2638529      2638530      2638531      2638532      2638536      2638537      2638563      2638564      2638567      2638568      2638569      2638618      2638628      2638629      2638634      2638644      2638647      2638649      2638653      2638658      2638666      2638671      2638675      2638677      2638679      2638680      2638685      2638687      2638689      2638691      2638692      2638693      2638694      2638695      2638696      2638697      2638699      2638701      2638702      2638703      2638704      2638705      2638706      2638707      2638709      2638710      2638711      2638712      2638713      2638714      2638720      2638721      2638725      2638726      2638728      2638731      2638732      2638736      2638737      2638739      2638740      2638741      2638744      2638745      2638747      2638748      2638753      2638754      2638755      2638756      2638757      2638760      2638763      2638764      2638768      2638777      2638781      2638782      2638783      2638791      2638793      2638795      2638796      2638798      2638799      2638801      2638810      2638811      2638813      2638814      2638815      2638816      2638817      2638818      2638832      2638833      2638834      2638835      2638836      2638846      2638847      2638848      2638849      2638850      2638851      2638852      2638854      2638855      2638857      2638858      2638859      2638860      2638861      2638862      2638864      2638866      2638867      2638868      2638869      2638870      2638872      2638873      2638874      2638876      2638883      2638884      2638885      2638893      2638895      2638900      2638923      2638927      2638928      2638929      2638931      2638932      2638935      2638936      2638937      2638939      2638942      2638943      2638949      2638952      2638954      2638955      2638956      2638957      2638958      2638959      2638960      2638961      2638962      2638968      2638976      2638978      2638979      2638980      2638983      2638984      2638986      2638988      2638994      2638995      2638998      2638999      2639001      2639002      2639003      2639006      2639011      2639012      2639013      2639014      2639016      2639017      2639018      2639024      2639025      2639030      2639036      2639038      2639039      2639043      2639045      2639046      2639049      2639055      2639057      2639064      2639066      2639067      2639068      2639069      2639072      2639074      2639076      2639079      2639080      2639081      2639085      2639086      2639092      2639098      2639099      2639100      2639101      2639103      2639104      2639105      2639106      2639107      2639109      2639110      2639111      2639112      2639125      2639128      2639129      2639131      2639132      2639133      2639134      2639137      2639138      2639139      2639144      2639146      2639148      2639149      2639159      2639162      2639164      2639165      2639167      2639177      2639179      2639186      2639187      2639188      2639191      2639196      2639197      2639204      2639205      2639208      2639214      2639217      2639218      2639220      2639221      2639223      2639224      2639225      2639226      2639227      2639230      2639236      2639237      2639238      2639239      2639241      2639242      2639246      2639248      2639260      2639262      2639263      2639264      2639270      2639271      2639292      2639293      2639296      2639298      2639299      2639300      2639302      2639303      2639304      2639305      2639306      2639307      2639308      2639309      2639311      2639315      2639316      2639317      2639319      2639321      2639322      2639323      2639324      2639325      2639326      2639327      2639328      2639329      2639330      2639331      2639333      2639336      2639338      2639339      2639341      2639342      2639343      2639344      2639345      2639346      2639348      2639349      2639350      2639356      2639358      2639359      2639360      2639361      2639362      2639364      2639365      2639367      2639368      2639369      2639370      2639373      2639374      2639376      2639378      2639379      2639381      2639386      2639387      2639388      2639389      2639391      2639394      2639396      2639397      2639398      2639400      2639401      2639404      2639405      2639406      2639409      2639410      2639411      2639412      2639419      2639423      2639426      2639427      2639429      2639434      2639437      2639440      2639446      2639448      2639450      2639457      2639465      2639466      2639467      2639468      2639469      2639472      2639473      2639474      2639475      2639478      2639485      2639486      2639487      2639488      2639489      2639491      2639492      2639495
    86
    2639497      2639498      2639502      2639504      2639505      2639506      2639507      2639508      2639509      2639511      2639512      2639519      2639521      2639522      2639523      2639525      2639527      2639530      2639542      2639543      2639552      2639553      2639554      2639555      2639559      2639560      2639561      2639563      2639564      2639565      2639567      2639574      2639575      2639578      2639579      2639581      2639582      2639584      2639585      2639586      2639587      2639588      2639589      2639591      2639595      2639596      2639597      2639598      2639599      2639605      2639618      2639621      2639623      2639624      2639627      2639628      2639637      2639638      2639639      2639644      2639647      2639648      2639649      2639650      2639654      2639658      2639662      2639665      2639669 I have some sample date here:
    http://www.developpez.net/forums/attachments/p57656d1263922095/bases-donnees/oracle/pl-sql/html-affichage-tableaux-conditions/testcase.zip/
    I want to know if it's possible to achieve what I want based on the code here.
    I'm working on Application Express 3.1.2.00.02
    thanks!!
    Roseline

  • Help with some beginner code

    Hello, I am new to java and I need a bit of help with some code that I'm writing. here is the code:
    import javax.swing.*;
    public class Test{
         public static void main(String[] args){
         JOptionPane.showMessageDialog(null,"We will now build a block with *'s","Block",1);
         String input=JOptionPane.showInputDialog(null,"Type a number: ","Number",3);
         int number=Integer.parseInt(input);
         int count=0; int count2=0;
         for(count2=0; count2<number; count2++){
              for(count=0; count<number; count++){
              System.out.print("* ");
    System.exit(0);
    }Now, all I need is to build a block of *'s with the number that the user inputs. With the code that I wrote I get the correct number of *'s but not in the form of a block. They just print out in a straight line. I know this is a very simple task but could someone please help me out? What do I need to modify in my code so that the *'s print out arranged as a block like so:
    **********

    Your code only uses the print method which prints without a carriage return/line feed. So you need to add a line of code to print a carriage return/line feed. Where? well that is your task to work out.

  • Need help with adjusting Javascript code to work in Adobe Edge (Countdown)

    Hello
    Im a newbie when it comes to working with Javascript and Adobe Edge and need a bit of help with adjusting some javascript code to work with Adobe Edge. A friend of mine helped me with making this javascript code: Edit fiddle - JSFiddle
    Its a simple countdown which counts down to a certain time at a certain date. What I aim to do is to add this code as a trigger on a text-element called "countdown" (within a symbol called "count").
    I have tried to do this as the code is, but it does not work. Anyone have any suggestions?
    Thanks!
    Mvh,
    Øyvind Hermans

    Hello again
    I have stumbled upon a problem with these animations; They crash the browser after viewing them a little while, usually less than 30 seconds in.
    Is this problem also occuring when you watch the animations?
    Is the countdown-code to much for the browsers to handle?
    Thanks in advance for your answers.
    Sincerely,
    Øyvind Hermans

  • Help with HTML form code

    I need help on some HTML code if at all possible.
    What I am trying to do is set up a page that someone can
    enter their name address and email into a form and when they hit
    the submit button it automatically sends them a premade email of my
    choosing that I make prior and somehow maybe embeded into the html
    code to the address that they entered? I dont know if it is
    possible but I am sure it can be.
    Thank you in advance

    Actually, you could be subject to "abuse complaints", not
    "abuse".
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "bregent" <[email protected]> wrote in
    message
    news:fb547q$b49$[email protected]..
    > >What I am trying to do is set up a page that someone
    can enter their name
    > address
    >
    > Sure, you can do it fairly easily with any scripting
    language. You need to
    > be
    > cautious about sending automated emails to anyone
    without first validating
    > that
    > they are the actual owners of the email address,
    otherwise you open your
    > site
    > up to abuse.
    >
    > >I dont know if it is possible but I am sure it can
    be.
    >
    > Huh?
    >

  • Need Help With Simple ABAP Code

    Hello,
    I'm loading data from a DSO (ZDTBMAJ) to an Infocube (ZCBRAD06). I need help with ABAP code to some of the logic in Start Routine. DSO has 2 fields: ZOCTDLINX & ZOCBRDMAJ.
    1. Need to populate ZOCPRODCD & ZOCREFNUM fields in Infocube:
        Logic:-
        Lookup /BI0/PMATERIAL, if /BIC/ZOCBRDMAJ = /BIC/OIZOCBRDMAJ
        then /BIC/ZOCPRODCD = ZOCPRODCD in Infocube
               /BIC/ZOCREFNUM = ZOCREFNUM in Infocube         
    2. Need to populate 0G_CWWTER field in Infocube:
        Logic:
        Lookup /BIC/PZOCTDLINX, if /BIC/ZOCTDLINX = BIC/OIZOCTDLINX
        then G_CWWTER = 0G_CWWTER in Infocube.
    I would need to read single row at a time.
    Thanks!

    I resolved it.

  • Would like help with treeset ,the codes that using for sorting, please ?

    hi every body. i faced a problem while writing this program, everything worked properly except this one. The program is related to Jframe and it asks the user to add three labels , three text field , one text area and three Jbuttons which are add sort and exit. i could deal with add and exit but sort, i couldn't do it properly because i don't know the codes that should be added in actionperfomed?
    These codes are :
    package gui;
    import javax.swing.SwingUtilities;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import java.awt.Rectangle;
    import java.util.ArrayList;
    import javax.swing.JButton;
    import javax.swing.JTextField;
    import javax.swing.JTextArea;
    import sun.misc.Sort;
    import domain.Student;
    public class StudentFrame extends JFrame {
          * This method initializes btnAdd     
          * @return javax.swing.JButton     
         private JButton getBtnAdd() {
              if (btnAdd == null) {
                   btnAdd = new JButton();
                   btnAdd.setBounds(new Rectangle(13, 135, 59, 27));
                   btnAdd.setText("Add");
                   btnAdd.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                        btnAddClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnAdd;
         protected void btnAddClicked() {
              // TODO Auto-generated method stub
         String name = txtName.getText();
         String id = txtID.getText();
         String age = txtAge.getText();
         Student s = new Student(name , id , age);
         txtArea.setText(String.valueOf(s ));
          * This method initializes btnSort     
          * @return javax.swing.JButton     
         private JButton getBtnSort() {
              if (btnSort == null) {
                   btnSort = new JButton();
                   btnSort.setBounds(new Rectangle(95, 136, 62, 25));
                   btnSort.setText("Sort");
                   btnSort.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             btnSortClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnSort;
         protected void btnSortClicked() {
              // TODO Auto-generated method stub
          * This method initializes btnExit     
          * @return javax.swing.JButton     
         private JButton getBtnExit() {
              if (btnExit == null) {
                   btnExit = new JButton();
                   btnExit.setBounds(new Rectangle(173, 134, 61, 23));
                   btnExit.setText("Exit");
                   btnExit.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             System.exit(0); // TODO Auto-generated Event stub actionPerformed()
              return btnExit;
          * This method initializes txtName     
          * @return javax.swing.JTextField     
         private JTextField getTxtName() {
              if (txtName == null) {
                   txtName = new JTextField();
                   txtName.setBounds(new Rectangle(79, 11, 60, 23));
              return txtName;
          * This method initializes txtID     
          * @return javax.swing.JTextField     
         private JTextField getTxtID() {
              if (txtID == null) {
                   txtID = new JTextField();
                   txtID.setBounds(new Rectangle(73, 55, 65, 26));
              return txtID;
          * This method initializes txtAge     
          * @return javax.swing.JTextField     
         private JTextField getTxtAge() {
              if (txtAge == null) {
                   txtAge = new JTextField();
                   txtAge.setBounds(new Rectangle(74, 96, 61, 24));
              return txtAge;
          * This method initializes txtArea     
          * @return javax.swing.JTextArea     
         private JTextArea getTxtArea() {
              if (txtArea == null) {
                   txtArea = new JTextArea();
                   txtArea.setBounds(new Rectangle(138, 5, 154, 128));
              return txtArea;
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        StudentFrame thisClass = new StudentFrame();
                        thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        thisClass.setVisible(true);
          * This is the default constructor
         public StudentFrame() {
              super();
              initialize();
          * This method initializes this
          * @return void
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setTitle("JFrame");
              return jContentPane;
    }Edited by: hypocrisy on Apr 26, 2009 6:51 PM

    There are three actionPerformed in that program.One for add Jbutton , Sort , and Exit
    the codes that i have added for add button after action performed are
    String name = txtName.getText();
    String id = txtID.getText();
    String age = txtAge.getText();
    Student s = new Student ( name , id , age);
    System.out.println(s);
    the codes for Exit button to make it works properly was :
    System.out.println(0);
    But when i came to Sort Button and i tried to enter many codes but it didn't sort properly so would you like to help me with the right codes :)

  • Help with free unlock code

    I just purchased a 7290 that was supposed to be unlocked (apparently it is refurbished). It came from cingular originally. My carrier can't unlock it to work with their system. Can anyone help me with free unlock codes?

    Only your carrier can provide free unlock codes.
    If you contact Horizon below in my signature, they do so cheaply and reliably.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help with new error code (-1)!

    Hi I am trying to update my iphone 4 to ios5. When it comes to the last stage, it shows this error of -1. I am unable to find any info related to this error code. Any help with this is highly appreciated! Many Thanks. Now the phone is unusable. Previously it showed several errors including 1600 series and they are all resolved. This is the last hudrle. Please Help!
    Thanks

    Like many I experienced some issues when updating to iOS 5 (on launch day). I finally gave up on the Update option and chose the Restore option.
    iOS 5 downloaded and installed without issue. I restored from Back Up and everything was in place. No errors.
    If you are updating, try using Restore instead.

  • Hi there can you help with this error code Oxc5d1281

    I refilled the HP cartridges in my Photosmart C 7250 All-in-One and put them in and got this error.  I have D/C power,etc and it still comes up with this error code.  Now what?
    Cheers,
    British_eh

    Hi british_eh
    You could try resetting the printer, details here
    Note though that the reliability of refills tends not be as good as originals, links below FYI.....
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00853819&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    http://www.qualitylogic.com/2009HPinktest.pdf
    Kind Regards, Ciara
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

  • Help with an existing website

    i created this site about 15 years ago. it has since been maintained by someone else, and now it's back in my lap. I used a different program to design it then and i'm heck'a rusty at the whole thing.
    i need help with how to get access to the site. I have the host info and password, but i'm not seeing how to do that in Dreamweaver.

    And if you are wondering where is Dreamweaver forum then here is the link:
    Click me here:
    Hope this helps.

Maybe you are looking for

  • How to I get an album only view? Eliminate "determining Gapless info"

    I just switched from MusicMatch and am trying to figure out how to list my music in the order of Artist and then Album, with songs on a particular album not displayed. I simply have far too much music to be able to allow meaningful browsing with all

  • Export/import portal favorites

    Hi, we have NW2004 Portal SP16.  Is it possible to export/import portal favorites between users?  The reason I asked is that we are planning on using 2 LDAP data sources in production and some users will be migrated in Active Directory from companyA.

  • Is is posible to made the

    Dear Members, Is there anyway to Suppress or Non edit the Stock type field while doing the goods receipt against Purchase order or Inbound delivery (101) for certain group of users. Means when we have stock type Quality Inspection in the Purchase Ord

  • I am having trouble opening Adobe Reader after I install it in my Safari.

    I am having trouble opening Adobe Reader after I install it in my Safari. I have installed reader about 10 times now and it says I can use it now, but when I try to open a file it tells me I need to launch Reader and Agree to terms. I really need to

  • Grey screen when importing HD videos into CS4

    hi, im new here and im having a bit of a problem with adobe CS4 Premiere Pro. i have an Hitachi D60PT HD Digital Camcorder anf i have recently filmed some footage to which im looking to edit together. ive imported the files into premiere, at first th