Click here to Skip to main content
15,890,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow can i reuse this code with multi text boxes w/o rewriting it [modified] Pin
Jeffrey Shane25-Jul-07 5:34
Jeffrey Shane25-Jul-07 5:34 
AnswerRe: I need help, please Pin
leckey25-Jul-07 6:15
leckey25-Jul-07 6:15 
GeneralRe: how can reuse code with multi text boxes w/o rewriting it Pin
Jeffrey Shane25-Jul-07 6:46
Jeffrey Shane25-Jul-07 6:46 
AnswerRe: how can i reuse this code with multi text boxes w/o rewriting it Pin
Dave Kreskowiak25-Jul-07 7:00
mveDave Kreskowiak25-Jul-07 7:00 
AnswerRe: how can i reuse this code with multi text boxes w/o rewriting it Pin
mr_lasseter25-Jul-07 7:06
mr_lasseter25-Jul-07 7:06 
QuestionConnection string Pin
dcode2525-Jul-07 5:25
dcode2525-Jul-07 5:25 
AnswerRe: Connection string Pin
Paul Conrad25-Jul-07 6:20
professionalPaul Conrad25-Jul-07 6:20 
GeneralRe: Connection string Pin
penguin500025-Jul-07 11:03
penguin500025-Jul-07 11:03 
As Paul wrote, it does seem a little odd to be doing what you want to do. I'm sure you have your reasons.

A couple of options for you:
1. Your database name remains static, and when you launch the application in a new month, it renames your current database to something else, and creates/copies your blank database in its place. This way, you always connect to a database with the same name.
2. You declare a string variable (strMonth), and then have some code that decides which month you are in, and assigns a value to strMonth - so if you're in July, strMonth = "July". You then connect to strMonth, and not a specifically named file. An array of months might be an efficient method of doing this.
GeneralRe: Connection string Pin
dcode2525-Jul-07 14:38
dcode2525-Jul-07 14:38 
GeneralRe: Connection string Pin
Paul Conrad25-Jul-07 15:55
professionalPaul Conrad25-Jul-07 15:55 
GeneralRe: Connection string Pin
dcode2526-Jul-07 3:32
dcode2526-Jul-07 3:32 
GeneralRe: Connection string Pin
Paul Conrad26-Jul-07 5:18
professionalPaul Conrad26-Jul-07 5:18 
QuestionIs there any replace file dialog/form in .net? Pin
H3rman25-Jul-07 4:26
H3rman25-Jul-07 4:26 
AnswerRe: Is there any replace file dialog/form in .net? Pin
Dave Kreskowiak25-Jul-07 6:56
mveDave Kreskowiak25-Jul-07 6:56 
QuestionCannot create Web Site in VS 2005 Pin
DJamesRange25-Jul-07 4:03
DJamesRange25-Jul-07 4:03 
AnswerRe: Cannot create Web Site in VS 2005 Pin
Paul Conrad25-Jul-07 6:21
professionalPaul Conrad25-Jul-07 6:21 
Questionhow to know my IP and write it in a label Pin
saadmechiche25-Jul-07 3:58
saadmechiche25-Jul-07 3:58 
AnswerRe: how to know my IP and write it in a label Pin
Tom Deketelaere25-Jul-07 4:20
professionalTom Deketelaere25-Jul-07 4:20 
GeneralRe: how to know my IP and write it in a label Pin
saadmechiche25-Jul-07 4:38
saadmechiche25-Jul-07 4:38 
Questionrestrict file type Pin
Prem Ranjan25-Jul-07 2:42
Prem Ranjan25-Jul-07 2:42 
AnswerRe: restrict file type Pin
Tom Deketelaere25-Jul-07 3:53
professionalTom Deketelaere25-Jul-07 3:53 
GeneralRe: restrict file type Pin
Sebastian T Xavier25-Jul-07 4:07
Sebastian T Xavier25-Jul-07 4:07 
GeneralRe: restrict file type Pin
Luc Pattyn25-Jul-07 5:34
sitebuilderLuc Pattyn25-Jul-07 5:34 
QuestionOpenKeyset Recordset - ADODB Pin
Werries25-Jul-07 2:05
Werries25-Jul-07 2:05 
AnswerRe: OpenKeyset Recordset - ADODB Pin
Dave Kreskowiak25-Jul-07 6:55
mveDave Kreskowiak25-Jul-07 6:55 

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.