Click here to Skip to main content
15,898,769 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMod Function?? Pin
PAguilar094-Oct-09 19:05
PAguilar094-Oct-09 19:05 
AnswerRe: Mod Function?? Pin
Christian Graus4-Oct-09 19:21
protectorChristian Graus4-Oct-09 19:21 
GeneralRe: Mod Function?? Pin
PAguilar094-Oct-09 19:43
PAguilar094-Oct-09 19:43 
GeneralRe: Mod Function?? Pin
Christian Graus4-Oct-09 19:48
protectorChristian Graus4-Oct-09 19:48 
Questionpicture in jpeg format Pin
BORGO CESARE4-Oct-09 8:14
BORGO CESARE4-Oct-09 8:14 
AnswerRe: picture in jpeg format Pin
Christian Graus4-Oct-09 10:26
protectorChristian Graus4-Oct-09 10:26 
QuestionVariables not declared in private subs [Solved] Pin
Sezotove3-Oct-09 16:07
Sezotove3-Oct-09 16:07 
AnswerRe: Variables not declared in private subs Pin
Christian Graus3-Oct-09 16:55
protectorChristian Graus3-Oct-09 16:55 
Your error messages are accurate

Sezotove wrote:
Const dblSTATE_TAX As Double = 0.04
Const dblCOUNTY_TAX As Double = 0.02


These are member variables, they are visible everywhere

Sezotove wrote:
Dim decPurchaseAmount As Decimal = 0
Dim decTotalAmount As Decimal = 0
Dim decTAX As Decimal = 0
Dim decTotalTax As Decimal = 0


These are local variables, they are visible within the method only, unless they are passed to other methods. Move them outside 'main' to make them member variables, so that your methods can see them.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

GeneralRe: Variables not declared in private subs Pin
Sezotove3-Oct-09 16:59
Sezotove3-Oct-09 16:59 
GeneralRe: Variables not declared in private subs Pin
Christian Graus3-Oct-09 17:23
protectorChristian Graus3-Oct-09 17:23 
GeneralRe: Variables not declared in private subs Pin
Sezotove3-Oct-09 17:27
Sezotove3-Oct-09 17:27 
AnswerRe: Variables not declared in private subs Pin
Christian Graus3-Oct-09 17:27
protectorChristian Graus3-Oct-09 17:27 
GeneralRe: Variables not declared in private subs Pin
Sezotove3-Oct-09 17:32
Sezotove3-Oct-09 17:32 
GeneralRe: Variables not declared in private subs Pin
Christian Graus4-Oct-09 10:25
protectorChristian Graus4-Oct-09 10:25 
AnswerRe: Variables not declared in private subs Pin
The Man from U.N.C.L.E.5-Oct-09 7:01
The Man from U.N.C.L.E.5-Oct-09 7:01 
GeneralRe: Variables not declared in private subs Pin
Sezotove5-Oct-09 8:22
Sezotove5-Oct-09 8:22 
QuestionCalculating avarge time ?? Pin
Bob Beaubien3-Oct-09 5:59
Bob Beaubien3-Oct-09 5:59 
AnswerRe: Calculating avarge time ?? Pin
Abhishek Sur3-Oct-09 6:48
professionalAbhishek Sur3-Oct-09 6:48 
AnswerRe: Calculating avarge time ?? Pin
Dave Kreskowiak3-Oct-09 9:56
mveDave Kreskowiak3-Oct-09 9:56 
GeneralRe: Calculating avarge time ?? Pin
Bob Beaubien3-Oct-09 15:39
Bob Beaubien3-Oct-09 15:39 
GeneralRe: Calculating avarge time ?? Pin
Dave Kreskowiak4-Oct-09 2:20
mveDave Kreskowiak4-Oct-09 2:20 
QuestionButton more then one click Pin
Bob Beaubien2-Oct-09 18:45
Bob Beaubien2-Oct-09 18:45 
AnswerRe: Button more then one click Pin
dan!sh 2-Oct-09 19:26
professional dan!sh 2-Oct-09 19:26 
AnswerRe: Button more then one click Pin
Abhishek Sur3-Oct-09 6:58
professionalAbhishek Sur3-Oct-09 6:58 
QuestionDate Value into the Database!!! Pin
jeshra2792-Oct-09 9:06
jeshra2792-Oct-09 9:06 

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.