Private Sub delBtn_Click() rs.Open Dim list As ListItem Set list = ListView1.ListItems.Add(, CStr(rs!Project_Name)) confirm = MsgBox("Do you want to delete the Employee Record", vbYesNo + vbCritical, "Deletion Confirmation") If confirm = vbYes Then ListView1.ListItems.Remove ListView1.SelectedItem.Key 'this line gives error Dim CM As ADODB.Command Set CM = New ADODB.Command Set CM.ActiveConnection = con CM.CommandType = adCmdText CM.CommandText = "DELETE FROM bmsTable WHERE Project_Name= ?" CM.Parameters.Append CM.CreateParameter("@Name", adVarChar, adParamInput, 50, ListView1.SelectedItem.Key) CM.Execute , , adExecuteNoRecords MsgBox "Record successfully deleted..", vbInformation, "Success" End If End Sub

Member Avatar
Member Avatar
+0 forum 1

Has been looking at different methods like using a look-up table or double-dabble, but have up to this moment not found any algoritm that do the work most effectively. The 64 bit value is delivered to the routine in two 32 bits registers (upper,lower). I am writing a larger project for PIC 32 microcontroller, and have already made a large library for this controller in MIPS, so I know basic MIPS.

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I'm a little stuck with something here. Basically I have a a method which, given a List of Students will have to filter out those who are younger than 60yrs old and should return a List of Students who are over 60yrs old but I want this to be a list of Optionals rather than just a List of Students. THe difficulty is that I can't find a way to return a list of optionals like List<Optional<Student>>. I can return an optional if I use things like findFirst() or findAny() `return studentList.stream().filter(x -> x.getAge() > 60).findAny();` or i …

Member Avatar
Member Avatar
+0 forum 4

Hi guys, I am having an issue finding duplicates in an arrayList. Here is some code studentRecords.add(new Student("Jo", "Pip", "JP000", LocalDate.of(1999,9,23), Sex.FEMALE)); studentRecords.add(new Student("Tara", "Bot", "TB345", LocalDate.of(1991,9,1), Sex.FEMALE)); studentRecords.add(new Student("Mara", "Lewart", "ML456", LocalDate.of(1988,5,23), Sex.FEMALE)); studentRecords.add(new Student("Anna", "Clarke", "AC010", LocalDate.of(1999,1,1), Sex.FEMALE)); studentRecords.add(new Student("Frank", "Boia", "FB300", LocalDate.of(2001,8,13), Sex.MALE)); studentRecords.add(new Student("Anna", "Clarke", "AC010", LocalDate.of(1999,1,1), Sex.FEMALE)); studentRecords.add(new Student("Jo", "Pip", "JP000", LocalDate.of(1999,9,23), Sex.FEMALE)); This is the list of student records stored in an ArrayList. I have to make sure that I identify the duplicates and store the duplicates in another arrayList, duplicateRecords for the sake of argument. Now, the first thing I tried was to …

Member Avatar
Member Avatar
+0 forum 4

from tkinter import * import time root = Tk() root.title("Testing System") root.geometry("900x600") def main(): def tick(): time_str1= time.strftime("%H:%M:%S") clock.config(text = "Current Time:\n" + time_str1) clock.after(200, tick) def date(): date_str1 = time.strftime("%A, %d %B %Y") date2.config(text = date_str1) date2.after(200, tick) frame = Frame(root) clock = Label(frame, font = ("times", 14, "bold"), bg = "light pink") clock.place(x = 260, y = 60) tick() date2 = Label(frame, font = ("times", 13, "bold")) date2.place(x = 40, y = 560) date() button1 = Button(frame,text = "Test", height = 2, width = 10, command = frame.destroy and menu) button1.pack() button1.place(x = 370, y = 150) def …

Member Avatar
+0 forum 0

I having been trying to change the font size and textposition of a textfield but I have not had any luck. I am trying to change the font size of a text field. I would like the font that is typed in the text field to be bigger and bolded. I have tried this, but it does does not work: [CODE] Font font1 = new Font("SansSerif", Font.BOLD, 20); JTextField textfield = new JTextField (); textfield.setFont(font1); [/CODE] Also, I want the texted to be centered in the textfield. I have used this: [CODE] textfield.setHorizontalTextPostion.CENTER textfield.setVerticalTextPostion.CENTER [/CODE] Thank you for your help …

Member Avatar
Member Avatar
+0 forum 4

how can i print 3 values(without knowing their string\number size) in same column using cout? i'm using these code: cout <<"\n" << "show tokens\n"; for(unsigned int i=0;i<Tokens.size(); i++) { cout << "Token: " << Tokens[i].Token <<right<<setw(20-Tokens[i].Token.size())<< "Type: " << Tokens[i].Type <<setw(40) << fixed << "Position Line: " << i<<"\n"; } but i know the 'token' size, but not the type size. so what you can advice me?

Member Avatar
Member Avatar
+0 forum 1

hello i am developing an application in c ++ and mysql and i am having a lot of difficulties in more specified login in the query where the query needs the user and the pass which are in variables. Can anyone help me? Thanks.

Member Avatar
Member Avatar
+0 forum 5

This is a program to get a student mark, as an input from user and print its grade based on the following criteria: if mark>=80 print 'A' if mark between 70-80 print 'B' if mark between 60-70 print 'C' if mark between 50-60 print 'D' if mark < 50 print 'F' How do I fix this code when e.g someone gets 75 it says you got a B C D ? percent = 85 if percent > 80: print("You got an A!") if percent > 70: print("You got a B!") if (percent >60): print("You got a C!") if (percent > …

Member Avatar
Member Avatar
+0 forum 2

Task 2: Write a program that simulates an unbiased coin flip. Your program should print true if the coin flip results in a head and false if the coin flip results in a tail. Hint: any value greater than 0.5, represents Head otherwise it represents Tail

Member Avatar
Member Avatar
+0 forum 1

Hi! I have made a POS Sotware. I have used only one JFrame as Main/Home Screen of the software and used JDialogs for all other screens. In this post I have concern with the 2 screens; Home Screen(which is a Jframe) and Sales Screen(which is a JDialog). As Home Screen appears I instantiate an instance of the Sales Screen in the constructor of Home Screen as : Sale sale = new Sale(); And on Pressing a Button on Home Screen I called : sale.visible(true); In the WindowOpened Event of the "Sale" Screen I load the products data from database and …

Member Avatar
Member Avatar
+0 forum 10

i was on the site pyschools working through the exercises, but i dont understand why it wont accept the code i input. [url]http://www.pyschools.com/quiz/view_question/s4-q2[/url] Create a function generateNumbers(start, end, step) that takes in three numbers as arguments and returns a list of numbers ranging from start to the end number (inclusive)and skipping numbers based on the step specified in the arguments. Note: The function range(x, y, z) can takes in 3 arguments. For example, range(1, 11, 2) will return a list of numbers [1,3,5,7,9]. Examples [CODE] >>> generateNumber(2, 10, 2) [2, 4, 6, 8, 10] >>> generateNumber(10, 10, 1) [10] >>> …

Member Avatar
Member Avatar
+0 forum 8

I am currently creating a product lookup system for a project of mine, however from reading around it has come to my attention that an OLEDB connection will not handle the SQL query below as it will not handle more than a simple "SELECT, FROM". Table: tbl_ProductInformation Field: Product_Name CurrentEntry = Variable storing the users entry [CODE] "SELECT Product_Name FROM tbl_ProductInformation WHERE Product_Name LIKE '*" & CurrentEntry & "*'" [/CODE] The outcome of this query is then put into a listbox. Is there anyway to make the OLEDB SQL query work so that the returned entries will correctly narrow down …

Member Avatar
Member Avatar
+0 forum 16

write a C program to sort a csv(student.csv)file using QSORT on LINUX .. please help.. student.csv file containing(student name, percentage)

Member Avatar
Member Avatar
+0 forum 1

hi.. am unable to view objects of a form in a project, although am able to view its code.. Whenever i try to open the form to view its objects, i rcv an error mentioning **"Error Loading Form. Please check "<path>.log" for details."** In the log file it says **"Line 59: Property Picture in cmdSelect could not be set."** How could i check the property of a command button without opening the form..?? Plz help..

Member Avatar
Member Avatar
+0 forum 14

Hello Everyone, I have an FPGA application that has some function (i.e: Matrix Multiplication) now I want to create the memory interface for FPGA communication based on the model pushed into the FPGA? For example, If we have the size of 1024 and the size of data is 10 bit how we can create memory interface a/c to the actual size? 1. What are the possibilities which can achieve this mechanism? 2. Can you help me to make pseudo-code or c-code? I am trying to used sds_lib.h (**same as #include <stdlib.h>**) functions but I have no idea how to that …

Member Avatar
Member Avatar
+0 forum 1

Hi! I want to learn programming. I'm 14 years old and very fond of computing. The only problem I face is *Which programming language should I learn?* or should I learn *Programming* i.e I learn the basics of programming so that I will be capable of learning any programming language. Also, when you recommend me one of the choice I stated above then please give me resources for learning e.g book names or some websites which will start me learning from scratch. Furthermore, I want to state that I want to create cool games, softwares or even Operating Systems from …

Member Avatar
Member Avatar
+0 forum 9

I new in learning Object Oriented Programming... I face a problem that how to do this question for loop and if.... hopefully can get some help in this website...` this question is need to do from the previos question.. this is java need to do the question using NetBeans.IDE.. question:(at the link file) VehicleApp.java: package vehicleapp; /** * * @author asus */ public class VehicleApp { /** * @param args the command line arguments */ public static void main(String[] args) { Vehicle car; car = new Vehicle("car", "manual", "electric"); System.out.println("Accelerate: Current Speed = " + car.accelerate()); car.brake(); System.out.println("Brake: Current Speed …

Member Avatar
Member Avatar
+0 forum 1

HI everyone, _SBLOCK *allocateMemBlock(size_t size) [ _SBLOCK *block = (_SBLOCK*)sbrk(0); void *memadr = (void*)sbrk(0); void *allocate_mem = (void*)sbrk(BLOCK_SIZE + size); if(allocate_mem == (void*)-1) [ return NULL; ] else [ block->next = NULL; block->isfree = false; block->size = size; block->memoryAddress = memadr+BLOCK_SIZE; return block; ]

Member Avatar
Member Avatar
+0 forum 7

I'm doing an assignment for a class and I can't figure out what I'm doing wrong to keep getting the "illegal start of expression" error. Any help would be appreciated. public class Overloading { public static void main(String[] args) { public static int max(int num1, int num2) { if (num1 > num2) return num1; else return num2; } public static double max(double num1, double num2) { if (num1 > num2) return num1; else return num2; } public static int max(double num1, double num2) { if (num1 > num2) return num1; else return num2; { public static double max(int num1, double …

Member Avatar
Member Avatar
+0 forum 5

At the risk of making a total fool of myself... I got very excited when I discovered that Java's "only opaque rectangular windows" limitation has been removed. Full release is intended for Java 7, but working methods can be accessed thru com.sun.awt.AWTUtilities in recent releases of Java 6 (I'm using update 20). I put together this little demo that adds some animation to the effects to give a hint of the potential. It runs for me under Windows 7 Home Premium; I just had to adjust Eclipse's compiler settings to warn rather then error for access rule violations. I'd be …

Member Avatar
Member Avatar
+2 forum 9

Anybody who knows how to change word or character in kanji to katakana or vice-versa. I'm using 2 textbox to do this, the first textbox is for katakana and the second textbox is for kanji. What i wanted to do is, whatever i typed in the kanji textbox it will be converted to its corresponding katakana value in the first textbox or vice-versa. Is this possible in vb.net or do i need to use third party software / dll / activeX to be able to do this, anyone please give me a good idea how to deal with this problem. …

Member Avatar
Member Avatar
+0 forum 14

H! I am writing a java proram in which I need to generate and read barcodes to and from .PNG images. I used barcode4j-2.jar library to generate barcodes and write them to PNG image. I did this successfully. But I faced an error during reading that generated barcode from the image. I used "OnBarcode.BarcodeReader.jar" library to read the barcode but it give s me folloiwng error: java.lang.NoClassDefFoundError: com/sun/media/jai/codec/SeekableStream at a.a.b.a.a(a.java) at a.a.d.a(d.java) at a.a.d.a(d.java) at a.a.d.b(d.java) at a.a.d.a(d.java) at a.a.d.e(d.java) at a.a.d.c(d.java) at a.a.d.a(d.java) at a.a.d.a(d.java) at OnBarcode.Barcode.BarcodeScanner.BarcodeScanner.Scan(BarcodeScanner.java) I am pasting the code here: public void ReadBarcodeFromImage() throws FileNotFoundException,IOException // …

Member Avatar
Member Avatar
+0 forum 2

can you please tell how you would invert the mouse control so that up is down, left is right etc.

Member Avatar
Member Avatar
+0 forum 21

[I]Last project for the semester and it's late!!! I am in need of some logic with this one....It seemed simple, but now it's out of control. My array with the ASCII converter works, but I can't seem to develop a complete output function to output this 'counter simulator.' Here's the problem and my code thus far:[/I]My mother always took a little red counter to the grocery store. The counter was used to keep tally of the amount of money she would have spent so far on that visit to the store, if she bought all the items in her basket. …

Member Avatar
Member Avatar
+1 forum 3

i'm creating a program using Code Blocks with GNU\GCC compiler. i'm using Windows 10 with Windows Defender. my program create a txt files(instead a text files, we can speak binary files too), but the Windows Defender can delete the file(and i have sure), for avoid these problem i must disable the Windows Defender. my question is: can i compile my program(even using a compiler\linker flag) for avoid the Windows Defender problems? ok.... i can disable the Windows Defender and make an exception.... but if i share my program, the new user will get the same problem :( can anyone advice …

Member Avatar
Member Avatar
+0 forum 16

I created a font to replace the English language font. It uses bitmap shapes and is a ttf type font. I want to be able to devise a way to use that font in my Revenline journal program I wrote in Liberty Basic and have it save the data in those bitrmap shapes so what I see in the editor, is what I get in my data file. If I view the data in a file viewer, I do not want to see English I want to see my data displayed in my font. Any ideas on how to make …

Member Avatar
Member Avatar
+0 forum 1

Hey everyone. I received this sql server error and I can't figure out where the trouble is: 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.SqlClient.SqlException: 'Incorrect syntax near '​'.' Source Error: Line: 46 Error Line: cmdsql.ExecuteNonQuery() Dim connexcel As OleDbConnection Dim daexcel As OleDbDataAdapter Dim dsexcel As DataSet Dim cmdexcel As OleDbCommand Dim drexcel As OleDbDataReader Dim connsql As SqlConnection Dim dasql As SqlDataAdapter Dim dssql As DataSet Dim cmdsql As SqlCommand Dim drsql …

Member Avatar
Member Avatar
+0 forum 3

Hi guys, this is my first question here What useful plug-ins / debuggers for Visual Studio do you use (for Windows)? P.S. I know Visual Studio has a good debugger. Thanks a lot

Member Avatar
Member Avatar
+0 forum 3

Hi, I have an idea of building an API for **Machine-to-machine payments.** The API will enable to assign wallets to connected devices, record available amounts of something valuable, as well as all incoming and outgoing movements of value. Would love to hear back from developers who are seeking to address the issue of M2M payments. * Which challenges around M2M payments are you trying to solve? * Which technology do you use? Appreciate your feedback a lot!

Member Avatar
+1 forum 0

The End.