Click here to Skip to main content
15,891,375 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: including line/scatter chart in VB.net Pin
Dave Kreskowiak7-Oct-08 2:01
mveDave Kreskowiak7-Oct-08 2:01 
Questionfilestream not working properly Pin
kjdion5-Oct-08 10:16
kjdion5-Oct-08 10:16 
AnswerRe: filestream not working properly Pin
jzonthemtn5-Oct-08 11:40
jzonthemtn5-Oct-08 11:40 
AnswerRe: filestream not working properly Pin
Guffa5-Oct-08 22:55
Guffa5-Oct-08 22:55 
Questionneed help on FUnctions Pin
ay3ssah5-Oct-08 5:59
ay3ssah5-Oct-08 5:59 
AnswerRe: need help on FUnctions Pin
AlexeiXX35-Oct-08 7:22
AlexeiXX35-Oct-08 7:22 
GeneralRe: need help on FUnctions Pin
ay3ssah5-Oct-08 18:58
ay3ssah5-Oct-08 18:58 
AnswerRe: need help on FUnctions Pin
Guffa5-Oct-08 7:31
Guffa5-Oct-08 7:31 
ay3ssah wrote:
Function Power(ByVal x As Integer, ByVal y As Integer)


You should specify the return type of the method, otherwise the return type will be Object.

Function Power(ByVal x As Integer, ByVal y As Integer) As Integer

ay3ssah wrote:
Case 1
MessageBox.Show(x & " raised to " & y & " is 1")


That is not correct. x raised to 1 is x, not 1.

ay3ssah wrote:
Case 0
MessageBox.Show(x & " raised to " & y & " is 0")


That is not correct. x raised to 0 is 1, not 0.

ay3ssah wrote:
Return pow = pow * x //is this correct??


No, that is not correct. As you don't initialise the pow variable, it will be zero from start. Anything times zero is still zero, so the final result will always be zero.

ay3ssah wrote:
i += 1


If you increment the loop variable in the loop, that will have the same effect as having a loop with step 2. The For...Next statement increments the loop variable automatically.

ay3ssah wrote:
Return ??what/how??


Return pow

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: need help on FUnctions Pin
ay3ssah5-Oct-08 18:56
ay3ssah5-Oct-08 18:56 
GeneralRe: need help on FUnctions Pin
AlexeiXX35-Oct-08 19:05
AlexeiXX35-Oct-08 19:05 
AnswerRe: need help on FUnctions Pin
Anoop Brijmohun6-Oct-08 0:53
Anoop Brijmohun6-Oct-08 0:53 
GeneralRe: need help on FUnctions Pin
ay3ssah6-Oct-08 2:51
ay3ssah6-Oct-08 2:51 
QuestionWriting a catch error handing Pin
zo9005-Oct-08 2:06
zo9005-Oct-08 2:06 
QuestionRe: Writing a catch error handing Pin
jzonthemtn5-Oct-08 7:42
jzonthemtn5-Oct-08 7:42 
AnswerRe: Writing a catch error handing Pin
zo9005-Oct-08 8:19
zo9005-Oct-08 8:19 
GeneralRe: Writing a catch error handing Pin
jzonthemtn5-Oct-08 8:30
jzonthemtn5-Oct-08 8:30 
GeneralRe: Writing a catch error handing Pin
zo9005-Oct-08 8:40
zo9005-Oct-08 8:40 
QuestionHow do I show an uncommon image format? Pin
Sonhospa4-Oct-08 0:56
Sonhospa4-Oct-08 0:56 
AnswerRe: How do I show an uncommon image format? Pin
Dave Kreskowiak4-Oct-08 5:25
mveDave Kreskowiak4-Oct-08 5:25 
GeneralRe: How do I show an uncommon image format? Pin
Sonhospa4-Oct-08 8:42
Sonhospa4-Oct-08 8:42 
GeneralRe: How do I show an uncommon image format? Pin
Dave Kreskowiak4-Oct-08 13:18
mveDave Kreskowiak4-Oct-08 13:18 
QuestionVB.NET comboBox help !! Pin
Saam_cse4-Oct-08 0:55
Saam_cse4-Oct-08 0:55 
AnswerRe: VB.NET comboBox help !! Pin
Dave Kreskowiak4-Oct-08 5:19
mveDave Kreskowiak4-Oct-08 5:19 
AnswerRe: VB.NET comboBox help !! Pin
Vimalsoft(Pty) Ltd5-Oct-08 0:19
professionalVimalsoft(Pty) Ltd5-Oct-08 0:19 
AnswerRe: VB.NET comboBox help !! Pin
jzonthemtn5-Oct-08 7:43
jzonthemtn5-Oct-08 7:43 

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.