|
Hah I wrote one of them in the 90s as an adjunct to a reporting system. It is not as simple as you hope, supplying check and date controls needs to check the data type of the parameter and text boxes are a waste of time. You have to supply combo's to select from. Use can't type for shyte!
I ended up building tables for proc/parameters to service that and it certainly wasn't browser based!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I would probably create a class that lets me specify an english name, a storedproc name, and a list of parameter objects with values set to a reasonable default. The interface would present controls based on object type.
This would make a really interesting article.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
My design had a table name, primary key field and display field for parameters requiring combo data. It worked quite well but was very under utilised as the user was more interested in the reports (Crystal in those days bleh)
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
All ye fools and jesters of this proud gathering
May I to you pose a question:
Upon yester’s nightfall, did ye happen to cast yer eyes
Towards the celebrative broadcast in memory of a truly great bard?
Even if ye did not, yer negligence may still be mended
For ye still have nine and twenty days and nights
To below preform a click
http://www.bbc.co.uk/shakespeare
* * *
So yes I am talking about Shakespeare's 400th anniversary show which was broadcast on the BBC and my little country too, and I guess large parts of the world. I dunno what it is me and Shakespeare. But his plays and words always evoke such inexplicably powerful emotions in my system. I enjoyed the broadcast very much and recommend it with all my heart.
(The stream unfortunately is not available outside the UK, unless you turn to naughty VPN/proxy methods. Not that you would, would you?)
... such stuff as dreams are made on
|
|
|
|
|
I chose to believe that Prince transformed his pain into art, and art is immortal; as Borges said: "the ancient food of heroes: humiliation, unhappiness, discord. Those things are given to us to transform, so that we may make from the miserable circumstances of our lives things that are eternal, or aspire to be so."
... details on Prince's alleged opiate purchases now being reported in various media, but source is one so-far anonymous informant, "Doctor D;" and, this could be just rumor.
from lyrics of "When Doves Cry" by Prince Rogers Nelson:
"How can you just leave me standing?
Alone in a world that's so cold? (So cold)
Maybe I'm just too demanding
Maybe I'm just like my father too bold
Maybe you're just like my mother
She's never satisfied (She's never satisfied)
Why do we scream at each other
This is what it sounds like
When doves cry" You may choose more than one:
1. Prince Rogers Nelson
2. Addict
3. Idiot
4. Saint
5. Sinner
6. Human
7. Dead
8. Rich
9. Role Model
10. Monster
11. Famous
12. Infamous
13. Non-drinker (alcohol)
14. Non-smoker (tobacco)
15. Health food enthusiast
16. Jehovah's Witness (religion)
I think I'll go with 1,2,6,7,8,11,13,14,15,16 ... and ... 4.5 (I didn't say you had to think in integer).
'yo, Purpleness: thanks for the music, particularly for "Purple Rain;" oh, and ... the movie, yes, was moved by that in spite of its abuse of women, and creepily narcissistic qualities.
Hope you rest now in permanent peace and freedom from pain.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
Well, it can't be Prince, because he's past tense.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
BillWoodruff wrote: the movie, yes, was moved by that in spite of its abuse of women, and creepily narcissistic qualities.
And of course, the bit where it's a trail bike with a Harley engine sound dubbed over the top...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
MySqlConnection^ con =gcnew MySqlConnection("server=localhost;port=3306;userid=root;password=themohal123;database=myfirstdb");
try
{
con->Open();
MessageBox::Show("Connection Successful");
con->Close();
}
catch (Exception^ ex)
{
MessageBox::Show("Connection Not Successful"+ ex);
}
}
|
|
|
|
|
It informs Microsoft whether or not it has established control of your personal information.
If it hasn't, it moves on to try nastier methods.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
You posted your question in the wrong forum. See that hint in the forum header?: "Technical discussions are encouraged, but click here to ask your programming question."
The code basically only attempts to establish a connection to the MySQL-server using the address and credentials in the connection string and shows a MessageBox telling you whether it succeeded or not.
Next time, please click the big green button "Ask a Question" on the homepage, it will lead you to the correct place to post a programming question.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
i m starter ..thanks for the appreciative replies ..
|
|
|
|
|
You aren't using VB. That's C++ syntax. If you think that's VB , you need to pay more attention in class.
This space for rent
|
|
|
|
|
|
Now, that was funny.
|
|
|
|
|
It is example of harde coded strings and logins in SQL code. In other words very realistic code.
|
|
|
|
|
The fact that you think that's VB indicates that you're a freakin' retard.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
John Simmons / outlaw programmer wrote: The fact that you think that's VB indicates that you're a freakin' retard.
The fact that you think a fresher, 'a retard' just because he mistook a piece of snippet indicates you are a.. genius. :P
Okay take it easy. I haven't said anything wrong.
On the point:
People usually dont get to see managed C++, in particular the UI application code often. Since it's looking quite an event driven, Sql connecting, messagebox showing, and not looking like C# one, the innocent learner thought it's VB.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Freshers can be dumb enough to mistake language syntaxes, but shouldnt be up to the level of posting connection strings in public. You are just few steps away to get your machine hacked for free.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Hi All,
Odd things are happening...Win 10 did an update I think earlier this morning and it's managed to kill the start button... Time for a restart... Testing!
Glenn
Well restarted and all appears to be working, odd that is the first time I've had Ten tank on me!
|
|
|
|
|
glennPattonInThePUB wrote: did an update I think earlier this morning and it's managed to kill the start button
I thougt that update was called Win 8...
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Win 10 was supposed to Win 8 which works...
|
|
|
|
|
A Win xyz which works? Are you dreaming? No, no, Win is not that bad at all
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Happened to my wife's system the other day; fixed with a restart.
|
|
|
|
|
Oh good it's not just me then!
|
|
|
|
|
My dad had an update last week and it removed the username field when logging in...
He was unable to login as only his password wasn't enough.
He had to format and re-install his computer.
Good thing he had a backup.
Way to go Microsoft
No way in hell I'm switching to Win 10 anytime soon
|
|
|
|