|
I do babble on, don't I?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
yes
PS: that was a very specific question, which allowed for a succinct answer, but then maybe you wanted something more to read on. So: yes indeed, you do, sometimes.
|
|
|
|
|
Henry Minute wrote: I hope you both enjoy the experience.
+5
I are troll
|
|
|
|
|
Given how clueless this post is, I'd say you're already well suited to a career in management.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
|
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi,
May i know how can i sign the Vbscript which i have written (in which im using Wshell where it depends on internet options)...thru certificate
pls help me regarding the same...
|
|
|
|
|
Just signing the script with any old signature doesn't automatically make it a trusted script. The browser also has to be able to verify the signature from a trusted signature authority, which also has to be configured in the browser, otherwise, you're wasting your time.
Goggle results for "digitally sign vbscript[^]".
|
|
|
|
|
Thanks for reply....
So if i place a certificate in server and when user tries to access the html in server(which consists of my vb script) is it possible for the user to view the certificate and if he agrees to install the certificate then my script will become signed....?
if yes pls let me know how can i make the client to view the certificate ....and allow my script (do not depend on internet options)...
please correct me if im wrong...
|
|
|
|
|
p_1960 wrote: So if i place a certificate in server and when user tries to access the html in server(which consists of my vb script) is it possible for the user to view the certificate and if he agrees to install the certificate then my script will become signed....?
No. The script has to be signed seperately and the certificate has to be verifiable by an authority.
p_1960 wrote: ....and allow my script (do not depend on internet options)...
For the last time - this will NOT work without user intervention. You cannot change the registry on a client machine from any untrusted code running inside the browser.
Seriously, pick up a book on it...
|
|
|
|
|
i am exhausted trying to figure out how to connect the inbuilt sql server to the vb 2008 express edition for insertion, update and deletion of rows or records in the tables.. so, any help is really appreciated..
tenzin at
ten_kunkyab@hotmail.com
|
|
|
|
|
Hi,
What have you tried?
If you want any help with connection strings then you can refer to::
www.connectionstrings.com/[^]
You can get many google search results for VB 2008 and SQL server.
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
If with inbuilt sql server, you mean the sql server that comes with the VS 2008 Express editions, all you need to do is click the help menu in visual studio and then the How Do I section.
There is a whole subject on how to work with data (databases). It has paragraphs on interaction between applications and databases, which will also explain how to update, insert, and delete data.
Or is there a more specific problem you are stuck with?
My advice is free, and you may get what you paid for.
|
|
|
|
|
thank you both of you.. i figured it out last night.. i used whole codes to access the database and perform insert, deletion, update and traversing..
i used dataset, sqlcommands, sqldataadapters and sqldatareaders they worked great.. thanks Bjarne and the other guy without name
- kun
|
|
|
|
|
hi all
suppose i have an array like below
dim Arr(26) as string
Arr(1) = "A"
Arr(2) = "B"
Arr(3) = "C"
.........
Arr(26) = "Z"
i want an outut like the below
A
B
C
..
Z
then
AA
BA
CA
..
ZA
then
AB
BB
CB
..
ZB
finaly
AAA
ZZB
ZZC
...
ZZZ
and so on..
how can i do this.?
thanks
anoop
|
|
|
|
|
|
well simply put.
say i have a word "TEST"
i want a string to build until it finds a match, namely "TEST"
so in this case the loop should
loop thru all the alphabets A-Z to do a check like below
dim out as string
dim arr() as string
arr(1) ="A"
arr(2) ="B"
arr(26) ="Z"
note that variable out is only a single character.
for lp as integer =1 to 26
out = Arr(lp)
IF out="TEST" then
Msgbox("Found")
end if
next
if a single character does not equal the word "TEST" then add a second character to out, like below....
for lp as integer =1 to 26
out = Arr(1) & Arr(lp)
IF out="TEST" then
Msgbox("Found")
end if
next
this should repeat untill out = "TEST"
hope this makes sense but dont know how to better explain the above
thanks though
|
|
|
|
|
Are you aware that computational time would increase as 26^N where N is your test string lenght?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Thursday, April 16, 2009 4:37 PM
|
|
|
|
|
Why not just set out to "TEST" since you are bound to find a match (eventually - within 26^N comparisons!)
What is the purpose behind doing it by building out one char at a time?
If we knew that we might be able to suggest a way forward.
Regards
David R
|
|
|
|
|
What the others guys said.
This sounds a lot like you are actually trying to accomplish something completely different from what you are describing here.
What you are describing here, sounds to me like what you think is the solution to the actual problem.
So please describe the actual problem to us.
My advice is free, and you may get what you paid for.
|
|
|
|
|
Coding, I suppose.
BTW: recursion often helps...
BTW2: never heard about combinatorial explosion? [^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Thursday, April 16, 2009 6:14 AM
|
|
|
|
|
CPallini wrote: BTW2: never heard about combinatorial explosion? [^]
Thanks for that. I'd done some studying about factorials, and the nCr button on my calculator, but didn't know the proper name for it
|
|
|
|
|
I m Using Vb 6.0 and access.I have more then 1000 records in particular table,now i wmat to update 2 to 3 rows only in that table,then how can i update without loading or updating all records?I m using VSFlexgrid for displaying data.
|
|
|
|
|
Does not Access SQL have a Select statement?
I haven't used Access for years, but from memory it always used to.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Tip: try not to mention that you are using vb6 on this forum.
Like with any database, you can write code in your application that executes an SQL statement.
You just build your update statement in the code, something like:
Dim dbConn As Connection
Set dbConn = New Connection
dbConn.CursorLocation = adUseClient
dbConn.Open "Your connection string here"
Dim MyNewValue As String
Dim SomeValueThatIdentifiesWhatRowToUpdate As String
MyNewValue = "blablabla"
SomeValueThatIdentifiesWhatRowToUpdate = "more blablabla"
dbConn.Execute ("UPDATE MyTable SET MyField='" & MyNewValue & "' WHERE MyOtherField='" & SomeValueThatIdentifiesWhatRowToUpdate & "' ")
Or something along these lines.
My advice is free, and you may get what you paid for.
|
|
|
|