Hi I'm having an 'The application is in Break Mode Error' when debuging this sort code. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ds As New test1 Dim reportdoc As New CrystalReport1 ds.Tables.Add(Test_tbl) DataGridView1.DataSource = ds.Tables("Datatable1") reportdoc.SetDataSource(ds.Tables("Datatable1")) With CrystalReportViewer1 .ReportSource = reportdoc .Refresh() End With End Sub The error occurs in this Line 'reportdoc.SetDataSource(ds.Tables("Datatable1"))'

Member Avatar
Member Avatar
+0 forum 1

Hello Everyone Help needed, Has anyone implemented frequency analysis attack on caesar cipher in PHP and predicting the possible key for it. it should input the cipher text and predict the key using frequency analysis chart.

Member Avatar
Member Avatar
+0 forum 2

My function brokes. It gives 0 errors but brokes when i run it... int findk(int a,int b, int n) { int m[1000]; int j=1; for(i=1;i<=b;i++) { if((pow(2,i)>a)&&(pow(2,i)<b)) { m[j]= pow(2,i); j++; } } int k=m[1]; for(i=1;i<j;i++)if(m[i]>k)k=m[i]; return k; }

Member Avatar
Member Avatar
+0 forum 2

Hey, what are your guys plan for spring break? I'm working extra hours to save up for my trips I'm taking in the summer. :-)

Member Avatar
Member Avatar
+0 forum 11

Hello! I have a problem about creating a menu, the switch statement doesn't break. Could somebody please help? The code is: do { /* ...get input... */ switch(choice) { case 1: submenu(); break; case 2: submenu2(); break; case 3: printf("\nThe program quits.\n"); exit(0); default: printf("\nNo such menu item!\n\n"); break; } } while(choice != 1 || choice != 2 || choice != 3); After calling submenu or submenu2 it executes the corresponding method, but after, it returns to the get input part again. What am I missing here? Thanks in advance!

Member Avatar
Member Avatar
+0 forum 6

So in my classes I've taken I was told by the teacher "case statements and if-else statements are the same things essentionally" so why learn both? and so I was not taught about cases. Besides the fact I should learn it anyway incase I need it for someone elses code, should I learn these for an actual purpose? Are they good for something that if-else isnt as good for?

Member Avatar
Member Avatar
+0 forum 3

HI everyone! Please help! HOw to make a loop wait until a button is click...??

Member Avatar
Member Avatar
+0 forum 27

I need the program to end the loop after player1 has won but the program continues to run until the loop is done i was wondering i know i need a break statement but i do not know where to put statement at.Any help is appreciated. import javax.swing.JOptionPane; public class ticTacToeGame { /** * @param args */ public static void main(String[] args) { int response; String player1 = null; String player2 = null; player1 = createUser1(player1); player2 = creatUser2(player2); do{ int i = 0; do{ String boardCreator = JOptionPane.showInputDialog(null, "Please enter the size of your game board?", "", JOptionPane.QUESTION_MESSAGE); i …

Member Avatar
Member Avatar
+0 forum 10

[CODE] for i in file: if i == 0: break else: y = i[0] for k in gile: ~~~~ break [/CODE] if i write something like this, which line does the program read after the second break? thanks

Member Avatar
Member Avatar
+0 forum 1

I have an assignment to make a craps game in c. The program i wrote runs but it always ends before it should. I think that the while loops in main have a problem but im not exactly sure wat the problem is because ive reviewed this code over and over and it seems logical but somehow its not working properly. The loop is supposed to call the play_game function over and over again as long as the input from the user is 'Y' or 'y'. when you run the program the loop is calls the play_game function, outputs an …

Member Avatar
Member Avatar
+0 forum 2

Hi guys, my keyboard has not [B]Break[/B] key, so i cant braek a test run with the conventional [B]Ctrl + Break[/B]. Is there any other way to break a test run? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 7

Can someone please explain break statements to me, as far as i understand a break statement leaves the loop before it has ended. But i run this code and expect to get "Zero" "One" But I get "Zero" "One" "One" "Unknown number" [CODE] for (int i = 0; i < 3; i++) { switch(i) { case 0: { System.out.println("zero "); } case 1: { System.out.println("one"); break; } default: { System.out.println("unknown number"); } } } [/CODE] Help please, can someone explain this to me in steps as i have confused myself badly

Member Avatar
Member Avatar
+0 forum 13

I am getting a "misplaced break" error from this part of the code,the following is a part of the mfile function,the while loop should break if the entered string in temp equals to the one in exit....I don't know why it shouldn't work,any help?Thanks. [CODE] ofstream myfile; myfile.open(fn,ios::ate); cout<<"File has been created. You may write to it now\n(enter '\esc' without inverted comma to close file).\n"; char exit[4]="\esc"; while(1); { char temp[600]; gets(temp); if(strcmp(temp,exit)!=0) [B]break;[/B] myfile<<temp; } myfile.close(); mainmnu(); } [/CODE]

Member Avatar
Member Avatar
+0 forum 2

Hey everyone, My problem is that in my program below I made an indefinite loop for comparing strings and values, my problem is on line 60 & 61, the loop automatically accepts whichever if statement is on line 60 when I test for an uppercase and lowercase char, as soon as I remove the logical or from my if statements and remove the capital char they work fine. Also if your wondering why I haven't used all the functions, its because I just wanted to test each out before doing all the complete coding but im just stuck on this …

Member Avatar
Member Avatar
+0 forum 2

Hi, Im new to here. I have a problem with some JS for my website. I made JS to enter text from input boxes in form to a read only text area. However it overites the text instead of putting it below (thats what I want it to do, put it below previous after clicking the add button). I tried few things that didn't work so I erased it from the code. Maybe one og you will know. HTML code: [CODE] <tr> <td> Kod Produktu: </td> <td> <input type="text" id="ip1" /> </td> </tr> <tr> <td> Opis: </td> <td> <input type="text" …

Member Avatar
Member Avatar
+0 forum 8

Hi, How do you text-wrap something like this: [CODE] <table width="10%"> <tr> <td>IWANTTHISLINETOBEBROKENWHENITREACHESTHEENDOFTHECOLUMN</td> </tr> </table> [/CODE] Thanks, Ashton.

Member Avatar
Member Avatar
+0 forum 3

Hi there. I am trying to use a html form to send a PHP email but I am having some problems when I enter the message in the text area. The messages that I send have line breaks in but instead of doing a line break it shows the [B]<br />[/B] and it also shows the [B]\n[/B] and [B]\r[/B] tags. Is there any way to stop them from showing but still use the line breaks. Thanks in advance Cameron

Member Avatar
Member Avatar
+0 forum 3

Using the following code I am trying to check the users input string (CAcodes) and checking each one individually by assigning each element in CAcodes to a list (CAcode). A for-loop checks the conditions to make sure that the conditions for each code are met. The main for-loop tests several things. [B]1.) Try Statement:[/B] tests if there is a url entered for the corresponding code in the dictionary (urldict). If there is no url entered for that specific code, then the dictionary holds the value to be "0.0". If the value is "0.0" (making k =1) the program breaks at …

Member Avatar
Member Avatar
+0 forum 19

The End.