|
Help? WIth what? This isn't enough to help you do anything!
Help with connecting to the database? With putting a query together? With executing the query? With the result set????
A lot more detail is needed if you want any kind of a useful answer.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
how can i make search in mdb file
feras ahmad
|
|
|
|
|
What you have to search in your database?
Can u specify more your question.
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
|
can anyone help me out in getting the code for simplex triangle.....???
|
|
|
|
|
satyasarthak wrote: can anyone help me out in getting the code for simplex triangle.....???
WTF is a simplex triangle? Maybe my research assistant[^] can help me.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
(Translation: I'll show you the way, but not write the code for you.)
|
|
|
|
|
VB - 6 Beginner
I have only been coding for 6 months and now "i'm addictded"
Prob:VB warning my procedure is too large. I have scanned numerous forums after forums..
ie.planetsourcecode.com ect....
I am designing a dictionary program and I coded the whole dictionary text and forgot about the 64kb rule and now I am stuck with a nice custum shaped form + picBtns and now not working.
I tried Huffman compression,public,function,modules,user,controls,OCX's and now confused.
Is there any easy fix to this?
EX: Private Sub PictureButton1_Click()
RichTextBox1.SelIndent = 33.3
RichTextBox1.SelHangingIndent = -16.6
RichTextBox1.SelRightIndent = 6.6
Dim name As String
name = Text1.Text
name = LCase(name)
Select Case name
Case "cat"
RichTextBox1 = "furry house pet."
Case "abandonment"
RichTextBox1 = "a program,that does't work!" ..........3000+ lines way too big!
Case "dog"
RichTextBox1 = "trys to eat furry house pet!"
End Select
On Error GoTo 0
Exit Sub
PictureButton1_Click_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure PictureButton1_Click of Form frm_Main"
End Sub
IM stressed and don't want to stop working! Thanks in advance.;)
|
|
|
|
|
Put the values in an array instead. If the array is sorted, you can even use binary search to locate an item, which is way faster than thousands of lines of code.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the help Guffa, look's like Im going to learn about array's today. I read a little about this yesterday, wasn't sure how to imply this. Any extra help will greatly be appreciated, (speed up my self teaching process)! ......Do until Next Loop..:->
|
|
|
|
|
Even if you use arrays you'll still come up against all the same barriers you have now. The better way is to separate your data from the program code.
Keep the data in a simple database and retrieve the bits you need depending on the key words in your 'dictionary'.
This also allows the dictionary database to expand by a couple of orders of magnitude without hitting any limits and eliminates any recompiles of your program in the meantime.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
(Translation: I'll show you the way, but not write the code for you.)
|
|
|
|
|
hello every one
I am working on vb 6.0 and I have a listview populated with data nad i awant that on click of a button this list with all data saved on my disk as a excel sheet.
if anybody have idea about that please help me
Thanks
|
|
|
|
|
you can using the Excel reference: Microsoft Excel 10.0(version number) Object Library.
I suggest you learning this from MS msdn web site.
There are some samples for help.
|
|
|
|
|
HI All,
I am basically passing URL parameters for the user to edit or delete pictures e.g
delete_images.aspx?id=1123
that means if anyone knows the id they can delete other users details so my question is how to avoid from this to happen. I also dont want to get any sql injection so please tell me whats the best way to achieve it with or without passing url values.
thanks
Robin
|
|
|
|
|
|
Hello all,
Im a newbie to .net and have been teaching myself. I have created a data migration tool for my company using vb and also microsofts USMT. The way it is now i have one exe file and a folder with the USMT files in it. Is there anyway to add those files to the exe file so i just have one single file instead of the exe and folder?. This may be a stupid question but It would help me out greatly. THanks a lot.
Bob
-- modified at 22:24 Monday 13th March, 2006
I should exlain a little more
I dont need any reg edits or anything i just need to run the exe which calls robocopy and the USMT files with the appropriate info. Its a lot easier sending end users one exe file instead of the exe and USMT folder. Thanks again
|
|
|
|
|
Normally, you could include the files as resources in your .EXE. The problem is that you can't treat these as actual files in some file system. If you're using Robocopy to copy these files to some other location, then no, you can't put them into your .EXE.
BTW, what is USMT??
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the response. I am shelling out to robocopy to copy the users data such as my documents etc... The USMT is Microsofts User State Migration Tool it includes scanstate and loadstate, inf files, dll files and some other files. USMT will migrate desktop and OS settings all depending on how you customize your inf files. Its nice to transfer that stuff over for our executives, and they are happy when thier new laptop looks like the old one. The Migration Wizard i created is customized to my company, but if you would like me to send you my source code too look at id be more then willing. I tried adding the files as reference but unfortunatley i cannot add the .inf files so that isnt going to work.
I really wish there was a way to just have the one exe file.
|
|
|
|
|
No, you're not going to get away with putting all this in one file. It's just alot more hassel than it's worth, and it complicates maintainability. If you have to change any of these files, you'll have to recompile the entire app.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
That is very true.. Good call on that one that could of ended up being a pain. Thanks for your help.
|
|
|
|
|
Why not compress the EXE and the 'USMT' files into a self-extracting ZIP file? WinZIP and others will do the job.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
(Translation: I'll show you the way, but not write the code for you.)
|
|
|
|
|
im trying to retreave an information from a database after the person have logged in.but i can insert the data to a specific place that im intent to put it.Im using session to do that by passing the parameter to campare it.
this is the code i used:
Dim MyConn As SqlConnection<br />
Dim cmdSelect As SqlCommand<br />
<br />
userName = Session("userName")<br />
<br />
If userName <> "" Then<br />
<br />
<br />
MyConn = New SqlConnection(ConfigurationManager.AppSettings("psmConnectionString"))<br />
cmdSelect = New SqlCommand("sp_GetUser", MyConn)<br />
<br />
cmdSelect.CommandType = CommandType.StoredProcedure<br />
<br />
Dim parameternoPekerja As New SqlParameter("@noPekerja", SqlDbType.VarChar)<br />
parameternoPekerja.Value = userName<br />
cmdSelect.Parameters.Add(parameternoPekerja)<br />
<br />
MyConn.Open()<br />
Dim dr As SqlDataReader = cmdSelect.ExecuteReader(CommandBehavior.CloseConnection)<br />
<br />
If dr.HasRows = False Then<br />
' error mesej<br />
Else<br />
txtnama.Text = CInt(dr("nama"))<br />
txtjawatan.Text = CInt(dr("jawatan"))<br />
txtjabatan.Text = CInt(dr("jabatan"))<br />
txtbidang.Text = CInt(dr("jabatan"))<br />
txtjabatan.Text = CInt(dr("jabatan"))<br />
End If<br />
Else<br />
'error
Is it wrong
|
|
|
|
|
pandapatin wrote: txtnama.Text = CInt(dr("nama"))
txtjawatan.Text = CInt(dr("jawatan"))
txtjabatan.Text = CInt(dr("jabatan"))
txtbidang.Text = CInt(dr("jabatan"))
txtjabatan.Text = CInt(dr("jabatan"))
must call dr.Read() first...
|
|
|
|
|
Hi
Does anyone know if there is some sort of button code which can close all instances of your application?
I want to be able to close all forms and all instances of an application with the click of one button.
Sometimes, when I use the Me.Visible = False code , instances of my application are still running unseen. I want to be able to avoid this.
Regards
ensuvari
|
|
|
|
|
You can use either End or Application.Exit()
chatura
|
|
|
|