|
|
|
If you load a VB6 project file in the VB5 environment you get a warning, even though the project is correctly loaded. The cause of the warning is a VB6 attribute "Retained" (that is, the "Retained in memory" option in the Project Properties dialog box) that isn't recognized by VB5. If you want to make a VB6 .vbp file backward campatibile with VB5 you can convert it using the following routine: |
Click here to copy the following block |
Function ConvertVB6Project(ByVal filename As String) As Boolean Dim fnum As Long Dim fileText As String Dim i As Long fnum = FreeFile Open filename For Input As #fnum fileText = Input$(LOF(fnum), fnum) Close #fnum i = InStr(1, fileText, "Retained=", vbTextCompare) If i = 0 Then Exit Function fileText = Left$(fileText, i - 1) & Mid$(fileText, _ i + Len("Retained=0") + 2) Open filename For Output As #fnum Print #fnum, fileText; Close #fnum ConvertVB6Project = True
End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|