Featured Editorial

'call it like
List1.Clear
List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 12)
List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 2)
List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 4)
List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 1)

Continue Reading

Recommended Topics

Member Avatar

I dont understand the appearent discrepency in the treatment of the variabe x, y, and z. Why y isn't treated as x and z? #include <stdio.h> #include <string.h> int main() { char result[100] = "Philippe Dupont 30"; char x[50]; char y[50]; int z; /*We use sscanf to give a value to the three variables x, y and z. the two first are strings and don't need &.*/ sscanf(result, "%s%s%d", x, y, &z); /*Printing the value of the variables works fine.*/ printf("%s\n", x); printf("%s\n", y); printf("%d\n", z); /*But when I want to print a string in which the variables are, the …

Member Avatar
0
1,159
Member Avatar

Hi guys, I have repost this problem again, which i still cant solved it , hope you guys can help me is been almost 2 weeks. Im not sure is my value not pass through all my url is wrong. thank you guys so much http://www.intpostfolio.com/intpostfolio/searchresult.php <input type="submit" onClick="openoverlay('<?php echo $data["ID"]?>')" value="<?php echo $data["ID"]?>"> http://www.intpostfolio.com/intpostfolio/js/search.js function openoverlay(id) { var myData = 'id='+id; jQuery.ajax({ type: "POST", url: "index.php", data: myData, success: function() { console.log(myData); } }); document.getElementById("myNav").style.display = "block"; } function closeoverlay() document.getElementById("myNav").style.display = "none"; } http://www.intpostfolio.com/intpostfolio/index.php $_POST["id"] is still empty even my console show the value <div id="myNav" class="overlay"> <?php …

Member Avatar
0
1,188
Member Avatar

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
0
1,010
Member Avatar

Hi, I'm having my login page as: [code=jsp]<html><head><body> <form action="validateuser.jsp" method="POST"> username - <input type="text" name="userName"> password - <input type="password" name="passWord"> <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form></body></html>[/code] And Validator Page as : [code=jsp]<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.util.*" %> <jsp:useBean id="idHandler" class="com.suntec.tbms3.ui.Login" scope="request"> <jsp:setProperty name="idHandler" property="*"/> </jsp:useBean> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><body> <% String userName = request.getParameter("userName"); String passWord = request.getParameter("passWord"); if (idHandler.authenticate(userName, passWord)) { response.sendRedirect("welcome.jsp"); } else { response.sendRedirect("retry.jsp"); } %> </body></head> </html>[/code] where I'm validating the username and pass word from my DB. Now I want to display the user login name …

Member Avatar
0
10,260
Member Avatar

Hi, I can show data from the database using query [CODE=php] <?php $con = mysql_connect("localhost","root","root"); if (!$con) { die('Could not connect: ' . mysql_error()); } $a= $_POST["SiteId"]; mysql_select_db("abc", $con); $result = mysql_query("SELECT * FROM sitepinfo WHERE SiteId='$a'"); echo "<table cellpadding=2 cellspacing=2 width=100% > <tr> <th bgcolor=#5D9BCC>SiteID</th> <th bgcolor=#5D9BCC>Maintained By</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td bgcolor=#FEE9A9>" . $row['SiteId'] . "</td>"; echo "<td bgcolor=#FEE9A9>" . $row['MaintainedBy'] . "</td>"; echo "</tr>"; } echo "</table>"; mysql_close($con); ?> [/CODE] Now It shows for example 5 results , I want an Approve, Edit, and Delete button like image I Attached, please tell …

Member Avatar
0
5,774
Member Avatar

Hi, I apologize if my english is bad, I need some help printing the value of a variable in the code that I show below, I'm using emu8086 and I need that this works in this code example that is the same that comes in the examples of emu8086 (PrinterDemo.asm) with a little of modification that is of what I need to print. Thanks for your help [CODE] ; the printer demonstration. ; this is simplified/ms-dos complatible version. ; this example may not work on Windows XP, however it may work for Windows 95/98: ; http://support.microsoft.com/default.aspx?scid=kb;en-us;Q258878 ; the printer device …

Member Avatar
1
7,769
Member Avatar

I have a search script that a user may search persons etc. I want to display a message if what he or types doesn't exist in the array. By default, I display some results and it displays the desired person when one writes on searchbar. but I want to show a message if what the user writes on searchbar doesn't much the array. the ngfor works perfectly I just can't show the message. I did a ngIf but doesn't show the #noThings when I type for example djlsklkssk. Note that userSet always has length > 0 because I call the …

0
1,224
Member Avatar

hi guys, can anyone advise me how to pass ajax post, my alert message has value but i cant pass to index.php . searchresult.php <input class="lowfliter" onclick="lowprice()" type="submit" id="lprice" name="lprice" value="Lowest"> search.js function lowprice() { var lprice = document.getElementById("lprice").value; var myData = 'lprice='+lprice; jQuery.ajax({ type: "POST", // HTTP method POST or GET url: "index.php", //Where to make Ajax calls dataType:"text", // Data type, HTML, json etc. data:myData, //Form variables success:function(){ alert(lprice); }, }); document.getElementById("myNav").style.display = "block"; } function closeoverlay() { document.getElementById("myNav").style.display = "none"; } ![passvalue.png](/attachments/large/4/b86f6872ce49bcd485461f18d913bf7d.png) index.php <?php if(isset($_POST['lprice'])) { echo $lowest = $_POST['lprice']; } ?> <div id="myNav" class="overlay"> <a href="javascript:void(0)" …

Member Avatar
0
1,130
Member Avatar

Would appreciate some kind help here as I'm experiencing some issue with regards to sorting of result from my map database. I trying to use onchange="this.form.submit() to activate my dropdown sort function, but somehow I kept getting plain text display of the sorted result. However, it would work fine if I were to click on search & preset the sort(for example, if I set it to sort according to lowest price value & click on the search button, the sort result would show out as normal, as seen in the below screenshot). Would really appreciate if anyone of you could …

0
991
Member Avatar

Hello i want to make a button that mutes and unmutes sound in html5 <video> tag. Here what i have so far. Sadly it doesnt work .ts soundOnOff() { let audio = document.getElementById('muteSound') as HTMLMediaElement audio.muted = true; } html <button onclick="enableMute()" type="button">Mute sound</button> <video id="muteSound" muted="true" playsinline autoplay loop preload="auto"> <source src="assets/videos/louvre.mp4" type="video/mp4" > </video>

Member Avatar
0
1,133
Member Avatar

When posting code, I get error > begin a line with 4 spaces in a row (or one tab), preceded by a blank line. 4+ spaces or tabs may not be used anywhere else.

Member Avatar
0
2,994
Member Avatar

Last week a group of six 'm-commerce' experts took part in a round robin discussion in Manchester, England to determine the best ways forward for developers interested in creating a serious mobile web presence yet wanting to make money through the medium of mobile advertising at the same time. Anyone who has been involved in this particular area of Internet growth will appreciate just what a serious challenge the mobile web presents to those who have not invested, in thought and deed as much as financially, in getting to grips with a realistic m-commerce marketing strategy. Unless you are creative …

Member Avatar
0
4,090
Member Avatar

Hello, I am learning Tkinter. As a part of the learning process I am building a Notepad clone in order to become familiar with Tkinter widgets. I am pretty close to completing it - I added about 90% functionality to the application - but I face two problems: 1) The text widget has a default fixed size (80x25 chars I believe). If I resize the root window at a greater size, the text widget stays at the initial size. This is an undesirable behavior - I expect/want the text to resize along with the root. Now, I came with something …

Member Avatar
0
14,730
Member Avatar

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
1
1,462
Member Avatar

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
0
1,217
Member Avatar

I have table i wish to count how many times a value appears in all column the table structure id Subject1 Subject1score subject1grade Subject2 Subject2score subject2grade 1 English 100 A Mathematics 100 C HERES MY PREVIOUSLY TRIED CODE <?php $subject1grade='A'; $subject2grade='A'; $subject3grade='B'; $a=array("$subject1grade","$subject2grade","$subject3grade"); print_r(array_count_values($a)); ?> THE RESULT Array ( [A] => 2 [B] => 1 ) I NEED THE CODE TO DISPLAY You made 2A(s), 1B(s) I want to count how many A's and C's

Member Avatar
0
1,242
Member Avatar

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
0
1,220
Member Avatar

Hi guys, its there any way to change the trigger of this button "add to cart" to run this link? I keep trying to figure out how to edit but it dosent work. :(. Buttton: `<button type="submit" name="add-to-cart" value="<?php echo esc_attr( $product->get_id() ); ?>" class="nm-simple-add-to-cart-button single_add_to_cart_button button alt">text1</button>` Link that i want to trigger from that button insted going to shop cart: `<a href="javascript:void(Tawk_API.toggle())"</a>`` I really appreciated if I can be helped please, i know it is a simple code but i can't solve the code.

Member Avatar
0
933
Member Avatar

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
0
7,692
Member Avatar

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
2
1,123
Member Avatar

![71923951_2309021662681505_5309298929043505152_n.jpg](/attachments/large/4/1849a45b2f18751c208bb45861be2f10.jpg)

Member Avatar
1
878
Member Avatar

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
0
1,695
Member Avatar

[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
1
1,446
Member Avatar

$strSPQuery = "SELECT * FROM `san_pham` where ma_san_pham=".$arrMa[$i]; $resultSp= mysqli_query($conn,$strSPQuery); $rowsp = mysqli_fetch_array($resultSp); $tong += $rowsp["gia"]*$arrSl[$i];

Member Avatar
0
1,516
Member Avatar

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
0
2,833
Member Avatar

I'm using a fairly standard MSI mobo with Intel Core i5-6400 processor and 64 GB RAM. So: Which programming language (besides assembly) is the most effective to use in this configuration when I want to do calculations/modelling trying to find the least number of combinations to fullfill some predefined conditions. More specific I have i.e. 5 sets of combinations each containing three different states: A, B and C. This gives me a total number of 243 combinations. Theoretically it is possible to reduce this number of combinations to 23 so that no matter what combination of the original 243 you …

Member Avatar
1
3,182
Member Avatar

Programming Exercise ATM Machine In this assignment you will create a program that allows a user to do the following: 1) Create a bank account by supplying a user id and password. 2) Login using their id and password. 3) Quit the program. Now if login was successful the user will be able to do the following: 1) Withdraw money. 2) Deposit money. 3) Request balance. 4) Quit the program. If login was not successful (for example the id or password did not match) then the user will be taken back to the introduction menu. This is what your program …

Member Avatar
0
4,457
Member Avatar

[ayuda] ![11.PNG](/attachments/large/4/4ddf2f6f33f7cbf727101afafa83bcf6.PNG) en la parte donde va la informacion todo lo agrege correctamente lo quite porque segun el error esta en la linea 6 Y ESTE ES EL CODIGO: ![23.PNG](/attachments/large/4/de429e28fe81a179b52d07efa435dd99.PNG)

Member Avatar
1
1,323
Member Avatar

This application was sending out orders without errors when smtp wasn't secured. Now the clients webmail server was changed to ssl. After making the changes the server times out. I did some research and found this .ConnectType = SmtpConnectType.ConnectSSLAuto I'm anable to assign the SmtpServer.ConnectType = SmtpConnectType.ConnectSSLAuto. This is my code. Dim SmtpServer As New SmtpClient() Dim mail As New MailMessage() SmtpServer.UseDefaultCredentials = False SmtpServer.Credentials = New Net.NetworkCredential(jonDoe@Domain.com, srvPass) SmtpServer.Port = 465 SmtpServer.Host = mail.Domain.com SmtpServer.EnableSsl = true mail = New MailMessage With {.From = New MailAddress(frome) } mail.To.Add(Too) mail.Subject = Subject mail.Body = InputBox("Enter the body here", "Body") For …

Member Avatar
1
919
Member Avatar

Actually iam a new PHP Learner, i developed an web app using Bootstrap, PHP, Mysql. Now i want to give login access for gmail id's which are already existed in my database, so i used login with google API, but want deny login access for any other gmails which are not existed in my database.

Member Avatar
1
1,074

The End.