Click here to Skip to main content
15,924,935 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDeployment Program Pin
FriendlySoluations15-Nov-06 1:59
FriendlySoluations15-Nov-06 1:59 
AnswerRe: Deployment Program Pin
ChandraRam15-Nov-06 2:03
ChandraRam15-Nov-06 2:03 
QuestionActiveX web browser control Pin
gspowar15-Nov-06 1:30
gspowar15-Nov-06 1:30 
QuestionSpecified cast is not valid. Pin
honey12315-Nov-06 1:02
honey12315-Nov-06 1:02 
AnswerRe: Specified cast is not valid. Pin
nlarson1115-Nov-06 4:57
nlarson1115-Nov-06 4:57 
GeneralRe: Specified cast is not valid. [modified] Pin
honey12315-Nov-06 17:19
honey12315-Nov-06 17:19 
QuestionFlag for debuggin mode in VB 6.0 or higher Pin
TheKriminal15-Nov-06 1:00
TheKriminal15-Nov-06 1:00 
AnswerRe: Flag for debuggin mode in VB 6.0 or higher [modified] Pin
nlarson1115-Nov-06 4:02
nlarson1115-Nov-06 4:02 
I'm not sure if vb6 has one built in but you can add your own. In the properties of the project, click the 'make' tab. look at conditional compilation arguments add your own call it IDE (or whatever) and give it a value of True. Then throughout your code you can can test it to whether or not you want to include the code when compiling.

Ex:

Conditional Compilation Arguments: IDE=True

#If Not IDE Then
'include this code
#Else
'??????????????
#End IF

You can use this technique for a lot of things. You can create a huge bas file that would have all the common routines that various projects that could use. But you don't want your exe/dll big because of the amount of code so tell vb what routines you want to include...

Ex: various subs and functions that you may wan to include. give each routine a number and then add all the routines up and give the conditional compilation argument ROUTINES the total.

Sub or Function Value Description
' --------------- ----- -------------
' GB_dtDateValue 1 Function to convert any string date
' to a date value
' GB_dtTimeValue 2 Function to convert any string time
' to a date value
' GB_dtDateTimeValue (8192+1+2) 8195 Function to convert a string containing
' a date and time to a date value.
' GB_iParseString 4 Function to parse a string using a
' specified delimiter
' GB_CenterFormInForm 8 Subroutine to center a called form
' within the caller form
' GB_CenterFormInScreen 16 Subroutine to center a called form
' within the screen
' GB_WindowPos_Save 32 Subroutine to save the position of
' of a form
' GB_WindowPos_Restore 64 Subroutine to restore the position
' of a form
' GB_bNumericKeyPress 128 Function checks to see if a numeric
' key was pressed
' GB_bAlphaKeyPress Function checks to see if a alpha
' key was pressed
' GB_bAlphaNumericKeyPress Function checks to see if a alpha
' or numeric key was pressed
' GB_bIsActiveWindow 256 Function to test whether or not the
' window asked about is active(top)
' GB_GiveFocusTo 512 A routine used to pass focus to a
' window via the handle.

if 1 goes into routines then it will be compiled, the rest of the routines that don't will not be included...

#If (ROUTINES And 1) Then
Public Function GB_dtDateValue(ByVal sDate As String, Optional ByRef bErr, _
Optional bHistoricalDate, Optional bHandleBeep) As Date

End Function
#End If

Hope this helps...
Nathan


-- modified at 10:20 Wednesday 15th November, 2006
QuestionHow to find manufacturers SERIAL NO. of HDD or C.P.U Using VB.6.0 or VC++ ? Pin
aanaik15-Nov-06 0:37
aanaik15-Nov-06 0:37 
AnswerRe: How to find manufacturers SERIAL NO. of HDD or C.P.U Using VB.6.0 or VC++ ? Pin
ChandraRam15-Nov-06 0:45
ChandraRam15-Nov-06 0:45 
Questioncircular referencing of GENERICS Pin
ajay1234567815-Nov-06 0:09
ajay1234567815-Nov-06 0:09 
QuestionPointer to an exisiting instance of a DLL (in VB2005) Pin
Andy_ORS14-Nov-06 22:58
Andy_ORS14-Nov-06 22:58 
AnswerRe: Pointer to an exisiting instance of a DLL (in VB2005) [modified] Pin
nlarson1115-Nov-06 4:08
nlarson1115-Nov-06 4:08 
GeneralRe: Pointer to an exisiting instance of a DLL (in VB2005) Pin
Andy_ORS15-Nov-06 23:14
Andy_ORS15-Nov-06 23:14 
GeneralRe: Pointer to an exisiting instance of a DLL (in VB2005) Pin
nlarson1116-Nov-06 2:11
nlarson1116-Nov-06 2:11 
QuestionHow do i nett these values ....? Pin
penguin500014-Nov-06 22:42
penguin500014-Nov-06 22:42 
AnswerRe: How do i nett these values ....? Pin
Guffa15-Nov-06 0:02
Guffa15-Nov-06 0:02 
QuestionRe: How do i nett these values ....? Pin
penguin500015-Nov-06 2:19
penguin500015-Nov-06 2:19 
Questionhow to extract data from hyperterminal Pin
Pradip Kishore14-Nov-06 22:29
Pradip Kishore14-Nov-06 22:29 
AnswerRe: how to extract data from hyperterminal Pin
Dave Kreskowiak15-Nov-06 4:32
mveDave Kreskowiak15-Nov-06 4:32 
GeneralRe: how to extract data from hyperterminal Pin
Pradip Kishore16-Nov-06 22:52
Pradip Kishore16-Nov-06 22:52 
GeneralRe: how to extract data from hyperterminal Pin
Dave Kreskowiak17-Nov-06 1:42
mveDave Kreskowiak17-Nov-06 1:42 
GeneralRe: how to extract data from hyperterminal Pin
Pradip Kishore17-Nov-06 19:18
Pradip Kishore17-Nov-06 19:18 
Questionhow to enable the textbox to be able to save text?? Pin
Subjugate14-Nov-06 19:33
Subjugate14-Nov-06 19:33 
AnswerRe: how to enable the textbox to be able to save text?? Pin
Christian Graus14-Nov-06 19:48
protectorChristian Graus14-Nov-06 19:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.