vb6

Excel macro to copy and paste data from one worksheet to another worksheet

时间秒杀一切 提交于 2019-12-24 12:21:49
问题 I am trying to Search for a value in a column and copy row from Sheet1 and creating new sheet as MySheet and pasting that particular row .But I am getting run time error while pasting data in MySheet.Any suggestions please. Data Input I am trying : ID name price units desc 1 ikura 10 4 Mail Box 2 test 11 14 xxxx 3 test 11 14 yyyy 4 test 11 14 Mail Box Sub SearchForString() Dim LSearchRow As Integer Dim LCopyToRow As Integer On Error GoTo Err_Execute 'Start search in row 4 LSearchRow = 4

Vb 6 listview substring_index

谁说胖子不能爱 提交于 2019-12-24 11:31:17
问题 I have a listview in vb6 containing the column ID, the values of ID are PID-id where id is equal to id in my database. Ex. PID-56, PID-57. What i want is when i get the value of column id, first value in my listview , let's say PID-56, I only want the ID part which is equal to 56. Ex. value=.text --> PID-56 newvalue=56 --> PID- is not included so 56 now can be a integer. How can i remove the 'PID-' considering I am using LIstview in vb6. What function shoul i be using? 回答1: If you know that

Is there an equivalent to RDO.OpenResultset in ADO?

送分小仙女□ 提交于 2019-12-24 10:36:56
问题 all is in the title :-) Some explanation : In order to use a vb6 with C# (COM / Interop) I have a performance issue with Data Access. I don't know why but the code is four times slower in C# via Interop. I'm trying to find a workaround and I would to replace the rdo by ADO to gain performance. old code (with rdo) : strSelect = _ QUERY1 & ";" & _ QUERY2 & ";" & _ QUERY3 & ";" & _ QUERY4 & ";" & _ QUERY5 & ";" & _ QUERY6 'Fp.Cn is a rdoConnection Set Fp.rs = Fp.Cn.OpenResultset(strSelect)

Changes to a dialog wont appear when i run it in Visual Basic using VB Editor 6.0

走远了吗. 提交于 2019-12-24 09:55:12
问题 I have this huge VB project which i just got from some one. i want to add a check box to a dialog in it so i opened Main2.frm and added a check box using ide. but now when i run the application the dialog resized to its orignal size hence not showing the new check box which is at the bottom. I know that this means somewhere in the code there might be something resizing the dialog box but i have scaned the code and found nothing. where the dialog is being created this is being done: Main2

VB6 application oracle 12 64bit connection

百般思念 提交于 2019-12-24 07:53:34
问题 We have a number of applications written in VB6 (not .NET) that have been running for almost 20 years. These applications are running on Windows 2007 64bit servers and connecting to Oracle-11 with a 32bit client. The connection string contains "Provider=OraOLEDB.Oracle" So far, so good. The problem is that we need to convert, for reasons that go beyond the scope of this thread) to Oracle-12 64bit. After having installed the Oracle 12-client (and disinstalled the Oracle-11 client), we get the

Progress Bar and File Copying Problem?

前提是你 提交于 2019-12-24 07:47:58
问题 Using VB 6 In my Project, when I copy the file from one folder to another folder, at the time I want to show the progress bar like copying…., Once the file was copied the Progress bar show’s 100 % Completed. Code. 'File Copying Private Sub Copy_Click() Timer1.Enabled = True Dim abc As Integer Dim line As String abc = FreeFile Open App.Path & "\DatabasePath.TXT" For Input As #abc Input #abc, line databasetext = line Dim fs As New FileSystemObject, f As File Set f = fs.GetFile(databasetext) f

Send string from VB6 Winsock to WebSockets

我的梦境 提交于 2019-12-24 07:19:42
问题 I'm Making a VB6 application that connected to WebSocket , the Handshaking and reserving data part is working as i need and , currently i'm stucked at the Sending a string back to Websocket via Winsock, i'm referring this blog post to work with websocket handshaking and things VB6 + Winsock prepared websocket server I have tried like this Private Declare Sub CopyMemory _ Lib "kernel32" _ Alias "RtlMoveMemory" (Destination As Any, _ Source As Any, _ ByVal Length As Long) ______________________

Problem with ssOption control in VB6: Text background color changes from Win 98 to Win XP

梦想与她 提交于 2019-12-24 06:47:20
问题 I'm using the ssOption control (Sheridan 3d Option control) in VB6. In Windows 98 the text area background color is the same color as the background color around the Option Circle, and that color is the default form color. So the Option button appears to be transparent. There is no Background color property and on Windows XP the background color of the text area is a different color from the background color around the Option circle. Any ideas as to why this would happen? The control's

VB6 applications can connect to SQL Server, but .NET applications can't

▼魔方 西西 提交于 2019-12-24 06:36:05
问题 Our system uses a combination of VB6 legacy applications and newer .NET applications. The applications are deployed to our clients, and they run the applications from a Terminal Server box, with the SQL Server database running on a different box. The VB6 applications work fine, while all of the .NET applications fail on startup (trying to connect to the database to read configuration information) every time with the error: System.Data.SqlClient.SqlException: A network-related or instance

Vb6 Record Updation Error

爱⌒轻易说出口 提交于 2019-12-24 05:49:48
问题 In vb6, a form containing following values and here is the screenshot link for the sample values ! And I am using Ms Access 2007 and it contains a table named "studentexamdetail" contains heading(Admno,Semester,Subjectcode,Regular_Arrear,Fee) And my doubt is when i click "Save" button in above form(see screenshot), then admission number,semester,all the subjectcode, regular_arrear(we can write manually) and Fee should saved in the "studentexamdetail" table but it stores 1st value only when i