Here is the download when clicking view detail:
http://www.classreunionprogram.com/downloads/EPC/invalid%20cast.txthttp://files.engineering.com/getfile.aspx?folder=fe077ea7-d8af-4a2d-8748-9246cf172f10&file=invalid_cast.txt
This from _load:
Private Sub frmAllView_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim nc As New cCustomers
Dim dataMgr As New cData
Dim sKey As String = ""
Dim sName As String = ""
Dim sCityStZip As String =...
Have a list view that populates members from an Access DB. Purpose is then to populate a form when a members name is clicked:
Private Sub mnuView_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuView.Click
Dim frm As New frmAllView
tsStatus.Text = ""...
Trying to make sure that a mask text box is filled correctly. Tried this with no luck:
If mskPhone.Text <> "(xxx) xxx-xxxx" Then
MessageBox.Show("Please enter phone data in this format 'xxx xxx-xxxx'", "Wrong Fromat", MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Sub...
Have a listview with eight columns. One contains phone numbers which is a challenge for me to present in the usual manner, ie (000) 000-0000.
The data is stored in an Access db, stored as text, formatted in the db as !\(999") "000\-0000;;_, 14 characters. Have tried formatnumber(file, 10)...
Trying to make a shortcut in the file system of a sln. However, when the shortcut is highlighted, the property box offers only a folder, application folder.
In a different sln, the property box allows a file to be chosen.
How to cure? Thanks.
It appears that this was perferctly clear to nobody but me. Let me start again.
When a record is being edited, then saved, it would be convenient to be able to scroll through the database, alphabetically to view and if necessary make corrections, save the record and move on.
To me that was...
What I am trying to do is to increment/decrement by one (1) record alphabetically. Threrefore, knowing the datarow, I could go forward/backward by one row. Is there a better way? thankx.
VB6 used movenext and moveprevious to increment/decrement the absolute record in a dataset. VS 2008 does not seem to have those features.
This is what I have to start. iMemberID finds the current record, next find the total number of rows (iMaxRows), then run through the database looking for...
Dave, you say zero suppress. Only if it is not part of the address. Found out that the proceeding zero was added when checking the second record whose address is 3226 and not 32260.
Thanks for the explanation. The street address field is 5 and either shows up as the number it is and the rest of the field is blank or filled with preceeding 0's. I'll go with the .trim function for testing.
thanks for your help
either this record or the previous added a 0 under the original code. Therefore, it returned 53000 and 32260:
6000436201211121157005000 000000000 0004529 BOBADILLO JACQUELYN 3226 ANDRICKS RD LA PORTE TX77571 00000000000000300...
Thanks for the replies. This is a typical text record:
6009412201211121236265000 000000000 0002864 BADA KEMI 5300 W GULF BANK RD 203 HOUSTON TX77088 00000000000000300 000000000...
Reading a text file locating certain positions, I am using:
Dim Lines = _
( _
From line In IO.File.ReadAllLines(OpenFD.FileName) _
Where line.Length > 0 AndAlso _
Not line.StartsWith("5") AndAlso _
Not line.StartsWith("9") _...
When starting an application in VS 2008 to connect to the db i used --> Private cn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\Customers.mdb"). After I tried to make it an executable, the application.startuppath now...
Converting from VB6 and CR9 to VS2008 and CR2008. Have a module that is identical in both however the VB6 part prints exactly as it should where the VS2008 part prints all available records.
A listview with checkboxes is populated with the records to be printed. The user chooses which records...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.