Click here to Skip to main content
15,301,291 members

Comments by Member 13554627 (Top 20 by date)

Member 13554627 5-Jan-22 8:34am View
   
Error:
print(soup.find_all("div", {'class':'cell'}['data']))
KeyError: 'data'

then I will get a keyError.
Member 13554627 29-Nov-20 9:24am View
   
Alright, thank you very much
Member 13554627 2-Oct-20 3:46am View
   
Yes but how do i print a list with that format?
Member 13554627 21-Feb-18 5:23am View
   
thanks!
Member 13554627 21-Feb-18 5:20am View
   
just a sample with the pointoscreen method is enough
Member 13554627 21-Feb-18 5:14am View
   
thanks!
Member 13554627 21-Feb-18 4:26am View
   
could you send the code just to check myself?
Member 13554627 5-Jan-18 11:00am View
   
Deleted
only problem now is, my outcome always wil be 0. i fill in a number with a textbox wich passes on my number to my database. my query reads that number and multiplies it with prijs wich is always 2.
Member 13554627 4-Jan-18 16:28pm View
   
ah allright, thats too bad. thanks anyway i appreciate your help!
Member 13554627 4-Jan-18 16:24pm View
   
sounds good, the only things is that i have to use the contain method and if i put in this it doesnt seems to work :/

if (Alias.Contains("[0-9]"))
{
return false;
}
Member 13554627 4-Jan-18 11:57am View
   
well sort off, i want to check a value (int) that comes from a sql database. but where can i use the contain method to check if there is an number for example 100 in my database.


public void voegtoebier(int aantal, int prijs)
{
data.Open();
string query = "INSERT INTO Bier (Aantal_consumpties,Prijs) VALUES(@Aantal_consumpties,@Prijs)";
SqlCommand cmd = new SqlCommand(query, data);
cmd.Parameters.AddWithValue("@Aantal_consumpties", aantal);
cmd.Parameters.AddWithValue("@Prijs", prijs);

cmd.ExecuteNonQuery();
data.Close();
public List<bier> Bier()
{
SqlConnection data = new SqlConnection(Connectionstring);
data.Open();
string query = "select sum(Aantal_consumpties*Prijs) as Rekeninggroep From Bier";

SqlCommand cmd = new SqlCommand(query, data);
using (SqlDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{

bier biertje = new bier();

// Lees de gegevens van de student in.
biertje.voegtoebier(reader.GetInt32(0));


// En voeg deze toe aan de lokale lijst.
biertjes.Add(biertje);

}
}
data.Close();
return biertjes;
Member 13554627 4-Jan-18 6:03am View
   
thank you very much for commenting, im trying to do what you said. but i can't change the tables, i get an update error.
Member 13554627 3-Jan-18 7:49am View
   
or to add the score class into the person class? and then delete the score class.
Member 13554627 3-Jan-18 7:32am View
   
i want to (groepsnaam + aliasnaam + aantalpunten + aantalstrikes + aantalspares) in an override string so it comes next to each other in an listbox.
Member 13554627 2-Jan-18 9:11am View
   
ah ofcourse i see, thanks!
Member 13554627 3-Dec-17 13:15pm View
   
only it isn't my original class, its an example of how it should be. its a school project you see. sorry if i brought up any confusion.
Member 13554627 3-Dec-17 12:14pm View
   
even when i do it still doesn't show me "hoi" five times, only consoleapp1. I want to call the method "voegtoe" and add a string with an int, so the number for int multiples the string.
Member 13554627 3-Dec-17 11:38am View
   
well i expected to show me "hoi" five times, but instead it only shows me console app 1 when i fill console.out.writeline(tm).
Member 13554627 3-Dec-17 11:38am View
   
Deleted
well i expected to show me "hoi" five times, but instead it only shows me console app 1 when i fill console.out.writeline(tm).
Member 13554627 3-Dec-17 10:54am View
   
thanks mate! it works