Un-Answered Questions { Scripts Errors }

I-series. When I use: qtp DICTIONARY(PDMZZ) AUTO (*LIBL/MFR0120X)I get the error: *E* Can't open the file specified on the AUTO program parameter. File of different type already exists. When I use it auto without *libl ,qtp DICTIONARY(PDMZZ) AUTO (MFR0120X), it works fine

2486


Jetking is C C

2193


I worked with $message and $$message, Bt its not working?..

1773


hii..i am doin a project called Forecaster..wat it does is it asks user to enter a zip code..then it establishes urlconnection with a weather website n fetches data n data is converted into graphical representation..but it doesnt show any output..i am not able it figure out the reason..can u plzzzz help me out..i am givin u code import java.io.*; import java.awt.*; import java.net.*; import java.awt.image.*; import java.awt.event.*; public class Forecast extends Frame { OkCancelDialog textDialog; BufferedImage image = null; public static void main(String[] args) { new Forecast(); } public Forecast() { String zip =""; File zipFile = new File("zip.txt"); String hiTemperature[] = new String[4]; String loTemperature[] = new String[4]; try { if(zipFile.exists()){ FileReader filereader = new FileReader("zip.txt"); BufferedReader bufferedreader = new BufferedReader(filereader); zip = bufferedreader.readLine(); } else { textDialog = new OkCancelDialog(this, "Enter your five-digit zip code", true); textDialog.setVisible(true); zip = textDialog.data.trim(); FileOutputStream fileoutputstream = new FileOutputStream("zip.txt"); fileoutputstream.write(zip.getBytes()); } int character; URL url = new URL ("http://www.srh.noaa.gov/zipcity.php?inputstring=" + zip); URLConnection urlconnection = url.openConnection(); InputStream in = urlconnection.getInputStream(); String input = ""; String hiSearch; String loSearch; String inchar; char[] cc = new char[1]; while ((character = in.read()) != -1) { char z = (char)character; cc[0] = z; inchar = new String(cc); input += inchar; } in.close(); if(input.indexOf("Hi ") >= 0){ hiSearch = "Hi "; } else{ hiSearch= "Hi: "; } int currentPosition = 0; for(int loopIndex = 0; loopIndex < 4; loopIndex++){ int location = input.indexOf(hiSearch, currentPosition); int end = input.indexOf("°", location); hiTemperature[loopIndex] = input.substring(location + hiSearch.length(), end); currentPosition = end + 1; } if(input.indexOf("Lo ") >= 0){ loSearch = "Lo "; } else{ loSearch= "Lo: "; } currentPosition = 0; for(int loopIndex = 0; loopIndex < 4; loopIndex++){ int location = input.indexOf(loSearch, currentPosition); int end = input.indexOf("°", location); loTemperature[loopIndex] = input.substring(location + loSearch.length(), end); currentPosition = end + 1; } boolean evening = false; if(input.indexOf(loSearch) < input.indexOf(hiSearch)){ evening = true; hiTemperature[3] = hiTemperature[2]; hiTemperature[2] = hiTemperature[1]; hiTemperature[1] = hiTemperature[0]; } image = new BufferedImage(225, 201, BufferedImage.TYPE_INT_RGB); Graphics2D g = image.createGraphics(); g.setColor(Color.white); g.fillRect(0, 0, 224, 201); g.setColor(Color.gray); for(int loopIndex = 0; loopIndex < 21; loopIndex++){ g.drawLine(25, loopIndex * 10, 224, loopIndex * 10); g.drawLine(loopIndex * 10 + 25, 0, loopIndex * 10 + 25, 199); } g.setColor(Color.blue); Font font = new Font("Courier", Font.PLAIN, 18); g.setFont(font); for(int loopIndex = 20; loopIndex < 200; loopIndex += 20){ g.drawString(String.valueOf(100 - loopIndex / 2), 0, loopIndex + 5); } g.setColor(Color.red); if(!evening){ g.drawOval(65 - 4, 200 - (Integer.parseInt( hiTemperature[0]) * 2) - 4, 8, 8); } g.drawOval(105 - 4, 200 - (Integer.parseInt( hiTemperature[1]) * 2) - 4, 8, 8); g.drawOval(145 - 4, 200 - (Integer.parseInt( hiTemperature[2]) * 2) - 4, 8, 8); g.drawOval(185 - 4, 200 - (Integer.parseInt( hiTemperature[3]) * 2) - 4, 8, 8); if(!evening){ g.drawLine(65, 200 - (Integer.parseInt( hiTemperature[0]) * 2), 105, 200 - (Integer.parseInt(hiTemperature[1]) * 2)); } g.drawLine(105, 200 - (Integer.parseInt(hiTemperature[1]) * 2), 145, 200 - (Integer.parseInt(hiTemperature[2]) * 2)); g.drawLine(145, 200 - (Integer.parseInt(hiTemperature[2]) * 2), 185, 200 - (Integer.parseInt(hiTemperature[3]) * 2)); g.setColor(Color.blue); g.drawOval(65 - 4, 200 - (Integer.parseInt( loTemperature[0]) * 2) - 4, 8, 8); g.drawOval(105 - 4, 200 - (Integer.parseInt( loTemperature[1]) * 2) - 4, 8, 8); g.drawOval(145 - 4, 200 - (Integer.parseInt( loTemperature[2]) * 2) - 4, 8, 8); g.drawOval(185 - 4, 200 - (Integer.parseInt( loTemperature[3]) * 2) - 4, 8, 8); g.drawLine(65, 200 - (Integer.parseInt(loTemperature[0]) * 2), 105, 200 - (Integer.parseInt(loTemperature[1]) * 2)); g.drawLine(105, 200 - (Integer.parseInt(loTemperature[1]) * 2), 145, 200 - (Integer.parseInt(loTemperature[2]) * 2)); g.drawLine(145, 200 - (Integer.parseInt(loTemperature[2]) * 2), 185, 200 - (Integer.parseInt(loTemperature[3]) * 2)); g.setColor(Color.white); g.fillRect(55, 160, 140, 30); g.setColor(Color.blue); g.drawRect(55, 160, 140, 30); font = new Font("Courier", Font.PLAIN, 12); g.setFont(font); g.drawString("Four-Day Forecast", 65, 172); font = new Font("Courier", Font.PLAIN, 9); g.setFont(font); g.drawString("Source: Nat. Weather Srvce.", 58, 185); setTitle("The Forecaster"); setResizable(false); setSize(250, 240); setVisible(true); this.addWindowListener(new WindowAdapter(){ public void windowClosing( WindowEvent e){ System.exit(0); } } ); } catch (Exception e) { System.out.println(e.getMessage()); } } public void paint(Graphics g) { if(image != null){ g.drawImage(image, 10, 30, this); } } } class OkCancelDialog extends Dialog implements ActionListener { Button ok, cancel; TextField text; public String data; OkCancelDialog(Frame hostFrame, String title, boolean dModal) { super(hostFrame, title, dModal); setSize(280, 100); setLayout(new FlowLayout()); text = new TextField(30); add(text); ok = new Button("OK"); add(ok); ok.addActionListener((ActionListener)this); cancel = new Button("Cancel"); add(cancel); cancel.addActionListener(this); data = new String(""); } public void actionPerformed(ActionEvent event) { if(event.getSource() == ok){ data = text.getText(); } else { data = ""; } setVisible(false); } }

1912


pleasesend which type of the books to indian banks clerks& what is topics pleases mailme

1893


a pleasant evening. i would like to ask a question about yellow journalism. This is another term for sensationalism right? i just wanted to know a lot of articles or studies with regards to the effect this yellow journalism could effect the interpretation of the students,especially college students who are taking Communication course. please help me answer this.

1797


i want a list of top 10 nationalized banks in inda....can some expects help me???

1864


Sir, I apply sbi clerk exams(07/09/09)But I did a mistake to enter my date of birth(correct 04.01.1985 / wrong 04.01.1984).please give me suggestions please. Thanking you, Bhushan.B

1644


who have build this website?

1816


can u deactivate my music massage from mobily? some times i recharge my a/c then after sometimes one massage come and sr.4/- debited from my account. so please help me stop the massage about music or what. i don't know stop them please.from yesterday i have lose sr.8/- from my account.

1954


hi all, I am in the process of learning qtp. i havve windows vista in my system whenever i try to run flight reservation application , i am getting the following error "Operation must use an updateable query Fractional truncation (null) . And am unable to open Mercury tours web application due to some other error Can anyone help me please

4906


I want singal maintainer(iii& ii) solved question paper in every year in every board in rrb. If you collect these and sent these my mail-id i shall very grateful to you.

1976


dear sir I want singal maintainer(iii& ii) solved question paper in every year in every board in rrb. If you collect these and sent these my mail-id i shall very grateful to you. thanking you your's faithfully soma saha

1904


wut is pre law

2240


When ever i log onto tce and i join a sever such as Or killzone i can only play for a certain amount of time before i get kicked. it says that i have been disconected from server for unknown reason. i cant seem to figure it out. i tried turning off my fire wall, but didnt work. please if you can give me any info on what to do it would help alot. Thanks.

2079