Graphics returning null in one place, but not another.

If you want to compile and run my program.... you can get all the files here:
http://s94182144.onlinehome.us/randomstuff/files.zip
(The main classes you'll need to look at are DrawingCanvas, Trig and GraphEngine)
Here's a visual just in case:
http://s94182144.onlinehome.us/randomstuff/graph.jpg
When I click the "Graph It" button, I'm sending all those variables in the window to another class. Except the method I need to call is passed Graphics g... and thus, I needed to create a graphics variable. But it's returning null.
Here is my code in GraphEngine, which runs when a button is clicked. You'll notice for Graph It... I created a Graphics variable... this returns null. Except you'll also notice I do the same thing for "Clear"... but this works.
NOTE: I was getting mad so I named some methods not so nicely :p .... you may notice they are different in my files.
     public void actionPerformed(ActionEvent e)
          userDisplay=e.getActionCommand();
          if(userDisplay.equals("Draw"))
               String progChoice=grapher.graphType.getSelectedItem();
               System.out.println(progChoice);
               if(progChoice.equals("Lines"))
                    grapher.allButtons[0].enable();
                    draw();
               else if(progChoice.equals("Scatter Plot"))
                    lineOfBestFit();
          else if(userDisplay.equals("Graph It"))
               Trig.graphThisStuff();
               Graphics g = canvas.getGraphics();
               canvas.trig(g);
           else if(userDisplay.equals("Clear"))
                Graphics g = canvas.getGraphics();
               System.out.println(g);
                canvas.clear(g);
        else if(userDisplay.equals("Reset"))
            Trig.restartThis();   
          else if(userDisplay.equals("Credits"))
            showInstructionsFrame();
        else if(userDisplay.equals("Help"))
            showHelpFrame();   
        else if(userDisplay.equals("Create Sinusodial Graph"))
            showTrigFrame();   

1. Do you expect forum members to download and unzip your code? Good luck...
2. Inside almost every "big" problem is a small one trying to get out. Write a minimal program
demonstrating your problem (say <50 lines) and post that. The shorter code and the easier it
is to copy, paste and run, the more forum members will actually give it a go.
That being said, you problem is that you are using Component's getGraphics at all. Don't use it.
It doesn't work very well -- they rendering you do is temporary, if you iconify and restore your
window your changes will disappear (sometimes even moving another window past yours will do this!).
What should you do instead? Put all your rendering code in paintComponent (or subroutines
it calls). Changes in state of your app should trigger a call to repaint (or you will call it directly).
Repainting will eventually cause your paintComponent to be called.

Similar Messages

  • Constructor works in one place but not another

    This is a program related to the game medal of honor. The constructor:
    Rcon status = new Rcon("say test", "superman3","213.221.175.132", "29961");
    Works from the main class, but where it's positioned in the class below, it doesn't - I'd love to know why!
    import java.util.StringTokenizer;
    import java.util.Vector;
    import java.util.HashMap;
    public class Token     {
         String test;
    public Token(String a)     {
              String toke = a;
              String s3 = "";
              HashMap hash = new HashMap();
              StringTokenizer tokenizer = new StringTokenizer(toke, "\n");
              while(tokenizer.hasMoreTokens())     {
                             String newString = tokenizer.nextToken();
                             if(newString.startsWith("map:") || newString.startsWith("num") || newString.startsWith("---") || newString.startsWith("print", 5)) {
                                  } else     {                         
                             String s1 = newString;
              String num = s1.substring(0,4).trim();
              String score = s1.substring(4,9).trim();
              String ping = s1.substring(9,15).trim();
              String name = s1.substring(15,31).trim();
              String lastmsg = s1.substring(31,39).trim();
              String address = s1.substring(39,61).trim();
              String portno = "";
              String qport = s1.substring(61,67).trim();
              String rate = s1.substring(67,72).trim();
              try     {
              test = s1.substring(72,73).trim();
                        if(test != null)     {
                   System.out.println(name + " your name is too long.\nPlease abbreviate it to less than 15 characters.");
                   Rcon status = new Rcon("say test", "superman3","213.221.175.132", "29961");
                   status.start();
         }     catch (StringIndexOutOfBoundsException e)     {
              if(test == null)     {
              Vector vector = new Vector();
              StringTokenizer tokens = new StringTokenizer(address,":");
              if(tokens.hasMoreTokens())     {
              address = tokens.nextToken();
              if(tokens.hasMoreTokens())     {
                   portno = tokens.nextToken();
              vector.add(num);
              vector.add(score);
              vector.add(ping);
              vector.add(name);
              vector.add(lastmsg);
              vector.add(address);
              vector.add(portno);
              vector.add(qport);
              vector.add(rate);
              hash.put(address,vector);
              System.out.println(hash);

    Thanks for the reply.
    It doesn't produce an error (probably due to my poor coding!) It's part of one thread and the other one works fine, so the program doesn't exit or anything. There's no GUI at present, it just lets the other thread carry on and this one just stops when it gets to the constructor.
    Here's the class if it helps:
    import java.io.InputStream;
    import java.io.IOException;
    import java.net.DatagramPacket;
    import java.net.DatagramSocket;
    import java.net.InetAddress;
    class Rcon {
    public int q3que (String msg,byte [] data,String server,Integer port) {
         DatagramSocket ds;
         DatagramPacket dp;
         InetAddress ia;
    try {
         ds = new DatagramSocket();
    } catch ( java.net.SocketException e) {
    System.out.print ("OK, we caught a java.net.SocketException. :'p\n");
         return -1;
    try {
         ia = InetAddress.getByName(server);
    } catch ( java.net.UnknownHostException e) {
    System.out.print ("OK, we caught a java.net.UnknownHostException. :'p\n");
         return -1;
    String out = "xxxxx" + msg;
    byte [] buff = out.getBytes();
    buff[0] = (byte)0xff;
    buff[1] = (byte)0xff;
    buff[2] = (byte)0xff;
    buff[3] = (byte)0xff;
    buff[4] = (byte)0x02;
    dp = new DatagramPacket(buff, buff.length, ia, port.intValue());
    try {
         ds.send(dp);
    } catch ( java.io.IOException e) {
    System.out.print ("OK, we caught a java.net.java.io.IOException. :'p\n");
         return -1;
    return dp.getLength();
    public Rcon(String a, String b, String c, String d)     {
         int length;
    byte [] buff = new byte[65507];
         String rcon = a;
         String passwd = b;
         String host = c;
         Integer port = new Integer(d);
         length=q3que ("rcon\r" + passwd + "\r" + rcon +"\0",buff,host,port);
         if (length < 0) return;
    return;

  • After installing Mountain Lion, why is there Yahoo access for one user but not another?--both are administrators.

    After installing Mountain Lion, why is there Yahoo access for one user but not another?--both are administrators.

    We've had several instances where we have had to run chkdsk on arrays with over 1m files. Average completion time is approximately 72 hours. The maximum downtime window they have available is the 64 hour weekend window. File sizes and number of files were
    much smaller then than they are now.
    The idea, in theory, was to use VHDs to compartmentalize the data into smaller volumes which could be more easily managed. It would also improve performance when transferring these compartments of data as they would use sequential read/write rather than
    fragmented/random. This idea was never fleshed out in entirety, they don't split data up into little containers, but simply into big ones per project. Hence the 11m files in one container that I am currently trying to diagnose.
    Some other important facts: The VHD in question is mounted in B:/project/ as this server also allows remote workers to log in, but they are restricted to see only data in E:. Disks A-D are hidden via group policy.
    Update: icacls is failing on a large number of files within this dataset. I counted the path characters to ensure it wasn't the 255 character limit I was encountering and verified that the paths being blocked are only about 150 characters long. Once it finishes,
    I'll have to try taking ownership and then re-running it. At this point I still have no idea how long to expect. I'm running out of time as the environment will be in use again at 9AM tomorrow morning.

  • Firefox crashes on start up for one user but not another

    Crash ID: bp-df3a48d7-363c-4d2f-87d3-f73902140723
    Version: 31
    Crashes on start up for one user but not another. Both are administrators.
    I have uninstalled and re-installed. No change with each user.
    Crashes in safe mode as well (holding down shift)
    No addons present in other user.
    Have ran Malwarebytes and cleaned
    Have ran CCCleaner and cleane all including registry entries with Firefox uninstalled.

    Create a new profile as a test to check if your current profile is causing the problems. <br>
    See '''Creating a profile''':
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem <br>
    '''Profile Backup and Restore'''
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Bubble Event firing in one company but not another

    Having spent the past 2 days trying to get the installer working (which it finally does thanks to people on this forum!), I've finally pushed my add-in out to people this morning.
    Unfortunately, the bubbleevent seems to be being ignored in all companies bar the test company.
    The code is below. The nominal codes do not begin with "720", so that section is not being fired in either company.
    So, my question is, why would a bubble event work in one company but not another?
    Private Sub oApp_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApp.ItemEvent
            Dim NumberRows As Long
            Dim oMatrix As SAPbouiCOM.Matrix
            Dim oRowCount As Integer
            Dim oCheck As SAPbouiCOM.EditText
            Dim oCheck2 As SAPbouiCOM.EditText
            REM Check for Profit Centre and Project Code on each line of Purchase Transactions
            If pVal.FormTypeEx = "142" Or pVal.FormTypeEx = "141" Or pVal.FormTypeEx = "181" Or _
            pVal.FormTypeEx = "139" Or pVal.FormTypeEx = "133" Or pVal.FormTypeEx = "179" Then
                REM Set to active form and Sales/Purchase transaction matrix
                oForm = oApp.Forms.ActiveForm
                oItem = oApp.Forms.Item(FormUID).Items.Item("38")
                oMatrix = oItem.Specific
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And _
                  pVal.Before_Action Then
                    If pVal.ItemUID = "1" Then
                        NumberRows = oMatrix.RowCount
                        For oRowCount = 1 To NumberRows - 1
                            oCheck = oMatrix.Columns.Item("30").Cells.Item(oRowCount).Specific
                            If oCheck.Value = "" Then
                                oApp.MessageBox("Please enter a Profit Centre on row " & oRowCount)
                                BubbleEvent = False
                            End If
                            oCheck = oMatrix.Columns.Item("31").Cells.Item(oRowCount).Specific
                            If oCheck.Value = "" Then
                                oApp.MessageBox("Please enter a Project on row " & oRowCount)
                                BubbleEvent = False
                            End If
                            oCheck = oMatrix.Columns.Item("U_CarReg").Cells.Item(oRowCount).Specific
                            oCheck2 = oMatrix.Columns.Item("1").Cells.Item(oRowCount).Specific
                            If oApp.Company.DatabaseName = "FOLLIS_LIVE" Or oApp.Company.DatabaseName = "FOLLUK_TEST" Then
                                If oCheck.Value = "" And Left(oCheck2.Value, 3) = "720" Then
                                    oApp.MessageBox("Please enter a Car Registration on row " & oRowCount)
                                    BubbleEvent = False
                                    Exit For
                                End If
                            End If
                        Next oRowCount
                    End If
                End If
            End If
            REM Check for Profit Centre and Project Code on each line of Nominal Transactions
            If pVal.FormTypeEx = "392" Or pVal.FormTypeEx = "393" Then
                REM Set to active form, journal matrix
                oItem = oApp.Forms.Item(FormUID).Items.Item("76")
                oMatrix = oItem.Specific
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And _
                  pVal.Before_Action Then
                    If pVal.ItemUID = "1" Then
                        NumberRows = oMatrix.RowCount
                        For oRowCount = 1 To NumberRows - 1
                            oCheck = oMatrix.Columns.Item("23").Cells.Item(oRowCount).Specific
                            If oCheck.Value = "" Then
                                oApp.MessageBox("Please enter a Profit Centre on row " & oRowCount)
                                BubbleEvent = False
                            End If
                            oCheck = oMatrix.Columns.Item("16").Cells.Item(oRowCount).Specific
                            If oCheck.Value = "" Then
                                oApp.MessageBox("Please enter a Project on row " & oRowCount)
                                BubbleEvent = False
                            End If
                        Next oRowCount
                    End If
                End If
            End If
        End Sub

    Hi Daniel,
    Then the only option I see is that the If statement is true in one database, and false on the others.
    If oApp.Company.DatabaseName = "FOLLIS_LIVE" Or oApp.Company.DatabaseName = "FOLLUK_TEST" Then
    If oCheck.Value = "" And Left(oCheck2.Value, 3) = "720" Then
    oApp.MessageBox("Please enter a Car Registration on row " & oRowCount)
    BubbleEvent = False
    Exit For
    End If
    End If
    If oCheck.Value = "" Then
    oApp.MessageBox("Please enter a Project on row " & oRowCount)
    BubbleEvent = False
    End If
    One of this is should be different on the companies.
    Nothing else comes to my mind.
    Regards,
    Ibai Peñ

  • Implicit read with assembly module instance working on one computer, but not another

    Hi,
    I'm trying to set up an on-site computer to run a VI which uses assembly instances for data communication, but for some reason I'm unable to establish a connection to the PLC.
    I'm running the example vi "CreateAssemblyInstance.vi" to try and get the communication set up before I start using my actual program.
    When I run this code on my development machine, I'm able to establish a connection to the PLC and read data. I then go into RSLogix 5000 and change the IP address to the on-site machine and try to run the test VI there, but I'm unable to make a connection. LabVIEW-side, the program thinks that it's established a connection and is reading/writing data, but PLC-side I'm getting a "Connection Failed" message in RSLogix.
    I find it weird that LabVIEW thinks the connection was established just fine, which the RSLogix says it can't connect to the VI.
    Just wondering if anyone else has had this happen. We aren't sure why the same VI runs on one machine but not another. We used RSLogix to change the IP address of the target machine, so we don't think that's the issue. And both computers are on the same network, so we don't think it's a firewall issue either.
    LabVIEW-side, things should be identical. I'm running the same example VI that came with the Ethernet/IP module. PLC-side, we're changing the target IP of the module within RSLogix 5000 (and we're sending the updated information to the PLC) to match the machine we're trying to make a connection with. Are we missing any steps? This is the first time we've tried using an assembly module, so we're having a hard time troubleshooting.
    Any ideas on why this is happening?

    I'm pretty sure we're using a generic ethernet module:
    I can communicate explicitly with the problem computer, it's able to use 'Tag Read' and 'Tag Write' to communicate with the PLC.
    We started having another problem just recently too. The Tag Read and Write commands are almost always timing out. I keep getting the error message -251723752:
    Detailed error info: Error -251723752 occurred at EthernetIP Tag Read REAL.vi;Details: The request response was not received in the requested timeout period    Possible reason(s):  Ethernet/IP Industrial Protocol: (Hex 0xF0FF0018) The request response was not received in the requested timeout period
    I can't figure out what's causing this all of a sudden, could these issues be related?

  • On one PC but not another I am getting an error message: Exception: java.la

    There is an applet on my site which is not loading for some users and not others.
    On one PC but not another I am getting an error message: Exception: java.lang.ClassNotFound.Exception:CheckboxApp.class
    The name of the applet is CheckboxApp
    some other user of my site are also getting similar messages
    Is there something from sun that can be downloaded by the users or is there some problem at the server level?
    Thanks

    It's probably because of the way the html that's calling the applet is coded, in conjunction with the vendor (Sun or MS) and version of the Plugin/JRE. This will help you ger started with diagnosis:
    http://java.sun.com/products/plugin/

  • Problem with SMTP from one computer but not another

    I have an iMac connected directly to my network via Ethernet and a MacBook Pro which connects via wireless. I have a program installed on my iMac that sends me alerts via e-mail, and it works just fine. When I try and use Mail, however, on my MBP with the exact same settings and credentials, it fails. To make this even more perplexing, Mail works fine from my office on a different network.
    To work around this, I use Comcast's SMTP server on my laptop, but why would my regular e-mail provider's SMTP work on one machine and not another on the same network? The only difference is one is connected via Ethernet and the other by wireless.
    I use a Time Capsule as my router and wireless access point. Has anyone got an idea about what's causing this?

    Please report the relationship, if any, of the "regular e-mail provider's SMTP" and your ISP? If Comcast is your ISP, they regularly block use of Port 25, but if you have selected Use Default Port in Mail Preferences/Accounts/Account Information for the Outgoing Server, then it may be making the wrong choice to work with Comcast. Regardless of the ISP, for this regular account click on the arrows beside the name of the SMTP, choose Edit Server List, then click on the Advanced Tab that will then be seen and choose Use Custom Port, then enter the proper port directly -- that port is probably Port 587, but that could depend on the advisory of the email provider for using their SMTP.
    Ernie

  • Store credit shows up on one computer, but not another

    Happy Easter everyone,
    I was wondering why my store credit shows up on one authorized computer, but not another? Is there a way to fix this? Or will I just have to make my purchases on that computer?
    Thanks
    Jason

    An account's balance should show wherever you use the account (computer's iTunes, and in the App Store, iTunes store and iBookstore on iOS devices). Have you tried logging out and back into the account on the computer that it's not showing : Store > Sign Out menu option, that will then change to a Store > Sign In option (my balance has sometimes been slow to update on my computers/devices)

  • Jabber 4.4 "Graphics card or driver not supported" error on one machine but not another.

    Hi, I looked at the KB document but the email link on it no longer works.
    I have two end-users using Jabber 4.4 on identical machines, same specs, same driver build and OS image. One gets the  "Graphics card or driver not supported" error, the other does not.
    We have two DellOptiPlex 7010's,
    Both had 2 instances of AMD Radeon HD 7470 - they are dual monitor machines.
    In both cases the driver version 8.922.0.0, Driver Date 12/6/2011. This is the latest Dell has on their website.
    On one machine when I run a fresh install for Jabber for TelePresence 4.4 it works fine. But on another the user first gets
    "supportabilitytest.exe has stopped working
    A oriblem cause the program to stop working correctly. Please close the program."
    Then when that's closed out we get:
    "Graphics card or driver not supported!
    New features in this version of Jabber Video are not supported by your computer's graphics driver.
    Update to the newest graphics driver available and run Jabber Video again."
    I can't believe it's just a matter of upgrading the drivers because in this case one machine with identical drivers works.
    I appreciate any insights, thanks !

    Hi ksouthall,
    It sounds like the openGL supported version did not install on the one that is failing.  There isn't much we can do regarding that error.  Best practice is to always upgrade to the latest manufacturer's available driver.  Client requirements are below.
    Windows 7 (32-bit or 64-bit), Vista, or XP (SP 2 or newer), with OpenGL 1.2 or newer.
    For 720p HD video calls, Intel Core2Duo @ 1.2GHz or better.
    For VGA video calls, Intel Atom @ 1.6GHz or better.
    Webcam, built-in or external. You need an HD webcam if you want other callers to see you in HD.
    Broadband Internet connection with a recommended bandwidth of 768kbps upstream and downstream. You need about 1.2Mbps upstream and downstream for 720p HD video calls.
    Regards,
    Jason

  • Airport works in one place but not in another

    My Airport extreme works perfectly at home. Signal is from a cable modem. When I go to our weekend place and try to connect my computer recognizes the Airport and I have four bars but I get no internet. The only difference is the weekend place has satellite connection. Could that be the problem and is there a workaround?

    That's not the problem. I can go anywhere there is a wireless signal and my computer hooks on automatically. It is hooking on at the weekend place but there is no internet service. If I take the ethernet cable out of the airport and plug it into the computer then everything is fine. And when I take the airport home and plug it in everything is fine. It just doesn't make sense.

  • Oledb working in one place but not in another

    I have two examples accessing the same table in my oracle database. Whereas code in example 2 always working , code in example 1 worked initially but after that failing with the following error.
    Please help me as to why I get table or view does not exist error in one case but working fine in other case when I use the same table in both examples?
    This post is organized as
    A) the error
    B) Code which contributed the error (please note this code worked initially , later started to fail without any modification at all).
    C) Code which is working fine also using the oledb provider and using the same table in the database.
    A) the error
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Data.OleDb.OleDbException: ORA-00942: table or view does not exist
    Source Error:
    Line 14:      
    Line 15:      dim ds as DataSet= new DataSet()
    Line 16:      objCmd.Fill(ds, "HR.tblPeople")Line 17:
    Line 18:      MyDataList.DataSource=ds.Tables("HR.tblPeople").DefaultView
    Error Complete
    B) Code which contributed the error 'Table or View Does not exist'
    <% @ Import Namespace="System.Data" %>
    <% @ Import NameSpace="System.Data.OleDb" %>
    <Script language="VB" runat="server">
    Sub Page_Load(obj as Object, e as eventargs)
         dim objconn as new OleDBConnection _
         ("Provider=OraOLEDB.Oracle.1;Data Source=bora9i;" & _
         "User ID=Sssss;Password=aaaaa;" & _
    "Extended Properties=;Persist Security Info=False;OLEDB.NET=True;")
         dim objcmd as new OledbDataAdapter _
         ("SELECT * FROM HR.tblPeople" _
    & "ORDER BY LastName, FirstName",objConn)
         dim ds as DataSet= new DataSet()
         objCmd.Fill(ds, "HR.tblPeople")
         MyDataList.DataSource=ds.Tables("HR.tblPeople").DefaultView
         MyDataList.DataBind()
    End Sub
    </Script>
    <HTML>
    <BODY>
    <Asp:DataList id="MyDataList" RepeatColumns="2"
         RepeatDirection="Vertical" runat="Server">
         <ItemTemplate>
              <div - style="padding:15,15,15,15;font-size:10pt;
              font-family:Verdana">
              <div - style="font:12pt Verdana;color:darked">
              <i><b><%# DataBinder.Eval(Container.DataItem,"FirstName")%> 
              <%# DataBinder.Eval(Container.DataItem,"LastName")%></i></b>.
              </div>
              <br>
              <b>Address: </b><%# DataBinder.Eval(Container.DataItem,"Address")%><br>
              <b>CompanyName: </b><%# DataBinder.Eval(Container.DataItem,"CompanyName")%><br>
              <b>Email: </b><%# DataBinder.Eval(Container.DataItem,"Email")%><br>
              <b>Webpage: </b><%# DataBinder.Eval(Container.DataItem,"WebPage")%><br>
              <b>HomePhone: </b><%# DataBinder.Eval(Container.DataItem,"HomePhone")%><br>
              </div>
         </ItemTemplate>
    </Asp:DataList>
    </BODY>
    </HTML>
    C) Code which is working fine also using OleDb provider and using the same table
    <% @ Page Language="VB" Debug="True" %>
    <% @ Import Namespace="System" %>
    <% @ Import Namespace="System.Data" %>
    <% @ Import Namespace="System.Data.OleDb" %>
    <html>
    <head>
    <title>Contact Manager: View All Contacts</title>
    </head>
    <body bgcolor="#FFFFFF">
    <h1>View All Contacts</h1>
    <table cellpadding="4" cellspacing="0" width="100%">
    <tr>
    <th>Name</th>
    <th>Title</th>
    <th>Company Name</th>
    <th>Work Phone</th>
    </tr>
    <asp:label id="lblOutput" runat="server"></asp:Label>
    </table>
    </body>
    </html>
    <script runat="SERVER">
    Sub Page_Load(Src As Object, e As EventArgs)
    Dim sqlConn As New OledbConnection
    Dim sqlCmd As New OledbCommand
    Dim sdrData As OledbDataReader
    Dim sb As New StringBuilder
    sqlConn.ConnectionString = _
    "Provider=OraOLEDB.Oracle.1;Data Source=bora9i;" & _
    "User ID=Sssss;Password=aaaaa;" & _
    "Extended Properties=;Persist Security Info=False;OLEDB.NET=True;"
    sqlConn.Open()
    sqlCmd.CommandText = "SELECT * FROM HR.tblPeople " _
    & "ORDER BY LastName, FirstName"
    sqlCmd.CommandType = CommandType.Text
    sqlCmd.Connection = sqlConn
    sdrData = sqlCmd.ExecuteReader()
    While sdrData.Read()
    sb.Append("<tr>" + vbCrLf)
    sb.AppendFormat(" <td>{0}, {1}</td>" + vbCrLf, _
    sdrData("LastName"), _
    sdrData("FirstName"))
    sb.AppendFormat(" <td>{0}</td>" + vbCrLf, sdrData("Title"))
    sb.AppendFormat(" <td>{0}</td>" + vbCrLf, _
    sdrData("CompanyName"))
    sb.AppendFormat(" <td>{0}</td>" + vbCrLf, sdrData("WorkPhone"))
    sb.Append("</tr>" + vbCrLf)
    End While
    sdrData.Close()
    sqlConn.Close()
    lblOutput.Text = sb.ToString()
    End Sub
    </script>

    Hi Srikanth,
    1. why there is no space between "HR.tblPeople" and "ORDER BY" in your query? I am surprised it works initially.
    dim objcmd as new OledbDataAdapter _
    ("SELECT * FROM HR.tblPeople" _
    & "ORDER BY LastName, FirstName",objConn)
    2. use
    Dim ds As New DataSet()
    Sinclair

  • Script works for one frame but not another

    I set up 2 keyframes, each one loads a different text file
    into a dynamic text box. The text box for the first keyframe is
    named "session" and the text box for the second keyframe is named
    "oneptq". The text file for the first text box is named Titles.txt
    and the text file for the second keyframe is 100Q.txt. The code I'm
    using is identical (except for the respective names of the text
    boxes and text files) but for some reason the text will load in the
    first text box but not the second.
    Here's my AS for the first keyframe:
    lvLoader = new LoadVars();
    lvLoader.onLoad = function(success)
    if(success)
    session.text = lvLoader.textbody;
    lvLoader.load("Titles.txt");
    And my AS for the second keyframe:
    lvLoader = new LoadVars();
    lvLoader.onLoad = function(success)
    if(success)
    oneptq.text = lvLoader.textbody;
    lvLoader.load("100Q.txt");
    I can't figure this thing out. Please help. Thanks.

    Have you double checked that it's a DYNAMIC text box? Maybe
    it was accidentally swapped by to static at some point...

  • Safari works for one user but not another on same computer

    MacBook with multiple user accounts. Safari (and Firefox) work fine for one user but are unable to open web pages when the other user is logged in. The error in Safar is "Safari can't open the page "http://xxxxxxxxx/" because it could not connect to the server "/xxxxxxx/" . DNS is working for this user. I am able to ping any number of sites from Terminal. Network Preference pane is configured to not require any proxy. This is a case of it was working but now it's not.
    Can anybody help with this? I know I can fix this by simply creating another user and transfering the affected user's data to the new account but I would rather not. TIA

    HI Bob,
    You can test your settings by clicking the big "Test My DNS" button at <https://www.dns-oarc.net/oarc/services/dnsentropy>. If you see "Poor" on any of the tests, don't use that domain name server! Remove it from Apple Menu => System Preferences =>Network =>DNS Servers or similar location in your router if you've got a 'home network'. If all you have is "poor" DNS servers in your list, call your ISP and insist that they give you the address of a name server which is protected against the recently exposed DNS cache-poisoning threat.
    Also, open System Preferences/Network. Click the DNS tab. Add these numbers in the DNS Servers box.
    208.67.222.222
    208.67.220.220
    See if that helps.
    Carolyn

  • Why will DVD play on one player but not another??

    Hi,
    I made an ISO file using devede and then burnt it to a DVD using K3B.  The finished DVD will work on a Magnavox player but not a JVC.  Is there anything I can do about this???  Do some players have a "must be produced commercially" filter or something???
    Jim
    Last edited by MillTek (2008-04-20 20:45:12)

    First, I am assuming you recorded your iso on +R type media.  Next, I'm guessing that the player that won't play your DVD is the older of the two players.  Some DVD players, especially older ones don't like +R media.  If this is the case, here is a possible fix.
    Here is a thread on another forum which discuses changing the booktype on your DVD burner.  Here is a quote from the original post:
    There have been many questions asked about how to booktype +R media to DVD-ROM
    Many standalone Players, HDD recorders/players and games consoles don't like +R media but they are happy enough to play -R or DVD-ROM.
    Some drive brands have tools to change this option but others don't. I have found that the easiest way to change your BOOKTYPE setting is to use a small burning tool called IMGBurn which can be found doing a Google search.
    Below you can see some screen shots which guide you through changing your BOOKTYPE setting. For this I have used my NEC4551 but IMGBurn supports NU-Tech, Plextor, Ricoh, Samsung, BenQ, LG, Lite-on and NEC.
    Once you have changed your BOOKTYPE setting, when you burn a +R/+RW disc it will be burned as a DVD-ROM which is the same as a bought movie and most players are happy to play these.
    Since my DVD players are happy with +R media, I haven't tried this.  Both of my players are fairly new, and I made sure that +R was listed on the box as one of the formats accepted by that player.
    As usual, try this at your own risk.
    Pudge

Maybe you are looking for

  • Item stock And value Information

    hi I have managed items(Raw Material)(Set G/L by Item Group).Inventory Account mapped in Asset drawer. my client to show all information that how much(Stock Value ) purchase for raw materials.At the time of      P & L Report.then tell me  How to show

  • Error while posting FPSEC1

    Hi everyone, Please guide me how to correct the following error: While posting SD Request through transaction code: FPSEC1, we are facing an error message, 'document is transferred without Main and Sub transaction'. Please guide. Thanks and Regards

  • Windows vista/iTunes doesnt recognize ipodtouch

    Hi, I just bought a new ipod touch, and treid connecting it to my pc. the first time i plugged it in windows vista said something about new hardware recongized and installing drivers, i waited till it was done and then checked iTunes. My ipod was not

  • RFC enabled function module to insert , update and delete data in a ZTABLE

    friends.. Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps.. what are the import, export parameters and how to code an

  • Strange things happens while sharing i-Calender posts.

    In our familiy we have four iPhone4 and one iPad. Today we tried to ad a post in the calender of the iPad (using mom's Apple-ID) and it worked well. The post was shown in both the iPad and her iPhone. But, when trying to share it to dad's iPhone it d