rproffitt 2,701 https://5calls.org Moderator

Nothing good can come of this. I doubt anyone will help you hijack standard Windows keypresses.

If you want help, explain in detail why.

rproffitt 2,701 https://5calls.org Moderator

My advice is to go DSN-less to see what this connection requires. There are so many prior discussions about DSN connection failures that I can't guess which is the cause here. Maybe no password?

rproffitt 2,701 https://5calls.org Moderator

Since no code is shared I'll write you should attempt a DSN-less connection.
Noted at https://docs.microsoft.com/en-us/sql/ado/guide/appendixes/microsoft-ole-db-provider-for-odbc?view=sql-server-2017

rproffitt 2,701 https://5calls.org Moderator

But which line has the syntax error? VB has always shown the line in question which when you place code here you can speed things along by posting the code, preview your post and write which line along with the error text.

Also, lines 11 through 33, 52 to 59 along with 66 to 68 do nothing. Those were not needed here.

Paige_1 commented: So I believe the error is line 41, but it also says something along the lines of there's an error: "syntax near the string Table" +0
rproffitt 2,701 https://5calls.org Moderator

Here you go. Enter the following at http://www.quitebasic.com/

2000 CLS
2010 PRINT "This BASIC program is just a sample of things you can do with Quite BASIC.  You will see drawing on the canvas, user input/output, and in the program are examples of most of the supported BASIC commands."
2020 PRINT
2030 INPUT "INPUT SCORE "; S
2040 IF S > 90 THEN GOTO 3000
2050 IF S >= 70 THEN GOTO 4000
2060 INPUT "INPUT SECOND SCORE "; S
2070 IF S >= 70 THEN GOTO 4000
2080 PRINT "you failed"
2090 END
3000 PRINT "good job"
3010 END
4000 PRINT "you passed"
4010 END
rproffitt 2,701 https://5calls.org Moderator

In line 5, can you share documention for the SEARCH keyword? https://www.w3schools.com/sql/ doesn't show this.

rproffitt 2,701 https://5calls.org Moderator

That's not how most forums work. If you were putting up a job for hire that's one thing but here you did a short intro without enough detail. Think about your classes in system desing or others where you make your software design documents. You omitted not only that but may not know this forum well. That is, you share the issue you are having with the minimum viable example. But "hey, can you change this random code I found on the internet?" That's done when you put up a job and its pay.

Adel_5 commented: and the writer be high priority +0
rproffitt 2,701 https://5calls.org Moderator

About the SELECT * area. In your first code passage you don't need all the columns. I would be guessing the column name but it could be "Full Name" so the SELECT would be SELECT "Full Name".

In the future as you become a SQL guru one of the things you always look for when there are performance complaints is the old SELECT *.

rproffitt 2,701 https://5calls.org Moderator

A few comments. Use the code formatting when posting code. Also, this will add line numbers so you can point out which line.

rproffitt 2,701 https://5calls.org Moderator

PS. A comment about "SELECT * FROM Admin"

A common lesson from many SQL books start off with SELECT which is a bad way to learn about the SELECT command. Unless you need all columns do not use . Call out the column or columns you need. Example readings from the web: https://www.google.com/search?q=SELECT+*+is+bad

As your database grows, you will see the performance hit.

Speed Ack commented: Kindly post example so that I know where and how to go round the problem. Thank you for your responses. +0
rproffitt 2,701 https://5calls.org Moderator

About the lbAdmin_SelectedIndexChanged method. It looks incorrect from here. You have the index and should use that to get the name you are interested in. But your handler seems to read the entire database rather than a one line SQL command like SELECT * FROM Admin where Username = your indexed name from the list.

Speed Ack commented: I am a newbie to programming, the app I am developing is a first one. I know I have a long way to go, I will try by all means to adhere to your advise +0
rproffitt 2,701 https://5calls.org Moderator

Before you do anything else, encrypt those passwords. Your code shows a classic blunder in name and password databases. The good news is there are discussions about that with this search: https://www.google.com/search?q=vb.net+one+way+password+encryption&gl=US

Because such passwords must not be stored in the clear you have to consider what this apps is for. If it's for you and storing your own passwords you could at least encrypt it in a database. If this is for a customer or client system then you never hold their passwords like this. You use the one way system so you can never show the user passwords.

Speed Ack commented: Thank you for that observation plus suggestion, I will surely look onto that before I publish the app. +0
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

@gentlemedia. I suspect that there are many disingenuous Mobirise posts.

It doesn't work for me as it only tells me that something is off about Mobirise either as the product is defective or there is a campaign system which has rewards for posting reviews or on forums.

gentlemedia commented: If I was a mod here, I would've pulled the trigger on Mara_2 already. It's so obvious! +0
rproffitt 2,701 https://5calls.org Moderator

@Emeka_1 Please make such requests in your own discussion. Also, it's a WordPress site plus at the bottom of the page are ways to ask the website's owner this question. I find that a lot of folk won't ask the site owner the questions. Why is that?

rproffitt 2,701 https://5calls.org Moderator

I worry that this is a duplicate of https://www.daniweb.com/hardware-and-software/macos/threads/519467/i-m-so-sick-of-not-being-able-to-download-anything-on-my-macbook#post2250633 in which I note the error message may not be what you wrote.

Cross and duplicate posting for the same issue only adds more confusion. Why not update one or the other post and remove the duplicates?

By update I mean add the details here or there for all to see.

Checking the links as given they don't seem to be legitimate sources. Could be cracks or hacks. Apple is working hard to keep you safe.

Try what http://osxdaily.com/2010/12/13/open-7z-files-on-a-mac/ notes instead.

As to CCleaner, again another shady site. Why not get it direct from Piriform? I AM ASKING. PLEASE TELL US WHY THESE ODD SITES.
https://support.piriform.com/hc/en-us/articles/204044184-How-do-I-download-CCleaner-for-Mac-

happygeek commented: What you said! Dodgy download links now deleted +16
rproffitt 2,701 https://5calls.org Moderator

Doing what exactly? Drop the color count? I can do that in many image editors. In order to keep is free and free of toolbars I'm going to stick to image editors I see at Ninite.com.

For my example, I'll use Paint.net.
When you save your image use the save configuration options to reduce the bit depth, or # of colors.
If you save as BMP, you should see options for 24 and 8 bit color. I can't guess if you can use 8 bit color but I could and did.
Result? Smaller file, faster load times.

rproffitt 2,701 https://5calls.org Moderator

Let's hear more. The fastest to screen images I've seen are bitmapped so they incur zero decompression and decoding. I also drop the number of colors from millions to 8 if the image is simple such as a pushbutton or such.

You can't predict the speed most of the time so you test out each idea.

rproffitt 2,701 https://5calls.org Moderator

Something seems to be seriously wrong with the new discussion creation. Folk are picking the code snippet topic when that's for solid examples or tutorials. Not for questions.

Can you help by telling us why you choose this format for posting?

rproffitt 2,701 https://5calls.org Moderator

Will a Gif work? If not, click on the picture or use https://imgur.com/gallery/kiyioaZ
CatBrexit.gif

Reverend Jim commented: Ah yes. Simon's cat. +0
rproffitt 2,701 https://5calls.org Moderator

A new meme about Brexit at https://imgur.com/gallery/Znkz6RF

Reverend Jim commented: Gotta love it. +0
rproffitt 2,701 https://5calls.org Moderator

Dani's link looks great. I want to share something from an industry I worked as an engineer in for years.

Look at the date and time stamp as it changes from white to black at this link:
https://i.imgur.com/TvPksPt.mp4

Took me a few passes before I figured out why. Neat feature.

rproffitt 2,701 https://5calls.org Moderator

While I would have stuck with MySQL that's in WAMP, it appears that setup for WAMP 3 with MS SQL is a lot more work. Check that you got it all done by reading http://eecs.csuohio.edu/~sschung/CIS408/MSSQLServerConnectedWAMPInstruction.pdf

jeffersonalomia commented: Thanks. I would just shift to mysql +3
rproffitt 2,701 https://5calls.org Moderator

I wonder about line 107. room_flooring is called out but I can't find where that method is in that class.

rproffitt 2,701 https://5calls.org Moderator

What is that? Pi or something else? For Pi there are over 64 solutions at https://rosettacode.org/wiki/Pi
Given google I found even more. All skill levels arrive here so if this is to find Pi, why won't those work for you?

varie_nyoka15 commented: thank you +0
rproffitt 2,701 https://5calls.org Moderator

So far the Code Snippet Repository is for you to show your completed and working code. Maybe a moderator can change your post type?

happygeek commented: done +16
rproffitt 2,701 https://5calls.org Moderator

For clarity tell if Google Script is "Google Apps Script."

https://developers.google.com/apps-script/reference/drive/drive-app shows no method hasNext.

Sorry but I don't work with this often enough to write your app for you.

Doodle23 commented: Or is there another programming language that I can use to do this? I've tried Google Apps Script since it seemed to me a bit easier. +0
rproffitt 2,701 https://5calls.org Moderator
cometody commented: The post is mainly for protecting excel sheet +0
rproffitt 2,701 https://5calls.org Moderator

I'd start this task with research.

This lead me to PyDrive in the first ten results.

runIT.py commented: It was pretty complicated for me as I don't know at all how Python works, so I moved on to Google Apps Script which seemed a little bit easier. +0
rproffitt 2,701 https://5calls.org Moderator

The mindreading part is in your top post where you wrote "my proposed algorithm". There's the mindreading part.

Also, this forum tends to not implement for members. That's for you the author or programmer to do. Where do you find help? When you are stuck on a nugget and can't seem to crack it. There have been many that want to have the forum "implement" for them. That is, do the work. I'm sure you understand how this works now.

rproffitt 2,701 https://5calls.org Moderator

Is MS Access still a thing? After over a decade of pain (other people's pain) I looked at and decided that it was not a good option for apps I wanted to package and deploy. My choice then was MySQL and that was without the pains others showed me.

I'd redesign with other SQL systems first.

rproffitt 2,701 https://5calls.org Moderator

Try keeping your post together in one place. This sounds like https://www.daniweb.com/programming/web-development/threads/519187/how-to-count-file-download-with-button-click-using-php-mysql to me.

So yes, you would code it so when the download button is clicked you +1 your song's download count in your database.

In case no one writes your code for you (rare here), there's a google about this: https://www.google.com/search?q=Increment+sql+entry+on+button+click&gl=US

Josh_4 commented: Sorry wasn't clear with the other post +0
rproffitt 2,701 https://5calls.org Moderator

@ReverendJim, yes and here our apps use Bluetooth so to write it was a challenge to get the Bluetooth tickety boo is an understatement. The first Bluetooth we used was way back on PalmOS which it's emulator was lacking as well but I did manage to set it up to use the Windows BT stack to a Com port and then in the PalmOS emulator use the Com port which worked well enough to get it all going. Later that feature failed but thank goodness the engine under it all was gold.

Now with Android, I've yet to find an emulator that included Bluetooth so for that the device as host for the app and debugging with USB was how it got done.

Hope this isn't too boring.

Reverend Jim commented: Not boring at all ^_^ +15
rproffitt 2,701 https://5calls.org Moderator

Why must it "depict"?

  • depict = "show or represent by a drawing, painting, or other art form".
    As C++ doesn't have native graphics, will Ascii Art do?
Kelvin _1 commented: I probably used the wrong term...'depict'?? Thanks for your help +0
rproffitt 2,701 https://5calls.org Moderator

I'm sure others will do this but where is the full documentation for this app? How much does it pay?
If this is homework, please read this: https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

Kelvin _1 commented: n btw it is homework... +0
rproffitt 2,701 https://5calls.org Moderator

If I needed to research how to remove certain characters I'd use https://www.google.com/search?q=Java+remove+specific+characters+from+string&gl=US
If I wanted to keep all alphabetic characters I'd use https://www.google.com/search?q=Java+string+alphabet+only&gl=US

V3N0M commented: I figured it out lol +3
rproffitt 2,701 https://5calls.org Moderator

Since you didn't present code or your problem I'll comment that Rosettacode has many passages about this: https://www.google.com/search?q=rosettacode+polynomials

Jay_31 commented: i'll just message you +0
rproffitt 2,701 https://5calls.org Moderator

I caught this UHD 4K 27 inch Sceptre for 210USD to my door in Oct 2019. What many don't know is that you can send it either 1080p or UHD video and it has HDMI, DisplayPort, and speakers if you don't have a sound system. Would buy again if I needed one.

rproffitt 2,701 https://5calls.org Moderator

I'm going to disagree here. What happens when there's a PDF is determined by the user's web browser, addons and more. There is no assurance what will happen when the PDF is sent. That is, you link to your PDF file as you would any other file. What happens depends on the user's setup, not your responsibility. Example HTML:

<a href="http://www.website.com/documents/filename.pdf">Descriptive Here</a>
rproffitt 2,701 https://5calls.org Moderator

To me, you have too many speed variables. When you created the new Car in line 39 you passed in the initial speed but I see what looks to be some error in thinking as you have speed in your main, another in your class Car.

So at line 52 it falls apart since the speed is not what's in the Car class. Think it over. No reason to pass in the speed on car.brake or car.accelerate. Also you ignore your class function getSpeed so there's that as well which should have been used in lines 53 and 57.

rproffitt 2,701 https://5calls.org Moderator

Just a comment. That post is a solid wall of text that the current US President would love as it may be stopping folk from reading it.

Consider formatting it to a few paragraphs to make it readable. Unless the intent was "No one shall pass!" or reply.

rproffitt 2,701 https://5calls.org Moderator

I can't guess what you want to discuss here. Are you selling such or asking for where I would go for same?

rproffitt 2,701 https://5calls.org Moderator

Both appear to create errors in my C++ compiler. Maybe you meant the return keyword? Here's a tutorial on that.
http://www.cplusplus.com/forum/beginner/24461/

rproffitt 2,701 https://5calls.org Moderator

Taking a hint from https://stackoverflow.com/questions/7523929/jquery-ajax-with-webmethod-removes-zero-from-front try forcing it to be a string.
ie, line 10 change id to '' + id.

I did not test this.

rproffitt 2,701 https://5calls.org Moderator

Did you perform the typeof to check prior to line 2's alert? Is it just the alert? I tried this and had leading zeros.

id = '00123456'
alert(id)
rproffitt 2,701 https://5calls.org Moderator

My bet is your variable "id" is a number and numbers don't have leading zero's.
https://www.w3schools.com/js/js_type_conversion.asp gives example of reporting the typeof statement to confirm.

Since the code that created the value id isn't shown, you'll have to work that.

rproffitt 2,701 https://5calls.org Moderator

Your code is not formatted so I won't get into it but an obvious omission is the missing fclose(). Take your pick from https://www.google.com/search?q=is+fclose+required%3F

I will not debate bad practices like this. Nor will I give a passing grade to such if submitted as homework.

rproffitt 2,701 https://5calls.org Moderator

Who would? Some home automation (pre-smart home?) did and here we are years later with iPads that you can't replace. We've been fine with a succession from beginning days with PalmOS then WinCE and now Android. It's not industrial control on the devices but setup. The old controllers have some 3 buttons and a two digit display which if you were a masochist you could use but with close to one hundred options we all use the Android setup tools.

It's a real shame that Apple did something to the Bluetooth system. Maybe their adapter is cheaper today but with 20 buck smart phones that can run the setup apps, there's little chance we're going to ever revisit the Apple world.

rproffitt 2,701 https://5calls.org Moderator

@kashioz. You can google up Louis Rossmann to find his encounters with Apple and more. Apple has declared war (my choice of words) on the repair industry by blocking access to spare parts and now this. As to legal, I'm not a lawyer but it appears to be legal until there's a court case or legislation.

phoneninja commented: its sadly not just Apple sadly. Its all search terms including non-branded ones as well as Google's own Pixel terms. Check out my article below +0
rproffitt 2,701 https://5calls.org Moderator

Since this appears to be a Windows system, I'd stop beating my head against the wall and make it C++.

open2join commented: I do need UI. For example, I would like to have a function that ask for a user input and it has to be more sophisticated than command window prompt. +0