Click here to Skip to main content
15,915,603 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Still no solution Pin
willempipi5-Nov-08 0:08
willempipi5-Nov-08 0:08 
GeneralRe: Still no solution Pin
ChandraRam5-Nov-08 0:57
ChandraRam5-Nov-08 0:57 
GeneralRe: Still no solution Pin
willempipi5-Nov-08 1:45
willempipi5-Nov-08 1:45 
GeneralRe: Still no solution Pin
ChandraRam5-Nov-08 4:09
ChandraRam5-Nov-08 4:09 
QuestionRe: VB6 and multi language support Pin
sonnyh3-Dec-08 7:58
sonnyh3-Dec-08 7:58 
QuestionCheck the write permission of any folder Pin
sunil goyalG4-Nov-08 20:49
sunil goyalG4-Nov-08 20:49 
AnswerRe: Check the write permission of any folder Pin
~Khatri Mitesh~4-Nov-08 23:39
~Khatri Mitesh~4-Nov-08 23:39 
QuestionNested (recursive) class Pin
wilson_borda4-Nov-08 19:22
wilson_borda4-Nov-08 19:22 
I am writing a code where I need to construct a chain of points. I have the code in C, but for my limitations in this language I am trying to convert it to VB.NET. The problem is:

My main class is

public class Point
public x as double
public y as double
public shrared pl, pr as new point() 'previous and next point
End class

My goal is to be able to access the evolution of the point. So, I need this type of declaration
...
dim p0 the new Point()
...
p0.pr.x = 2
p0.pr.y = 4
...

What's happening is that when I that when I set p0.pr.x = 2 or p0.pr.y = 4 (or another property of pl or pr) all the values of x and y are changed. That is, p0.pr.pr.pr.pr...pr.x = 2 and p0.pr.pr.pr.pr...pr.y = 4. That should not happen. Can you tell me how to change the value of a variable only at a level of p?

Sorry but my english is terrible!!!

Thanks in advance
Wilson
AnswerRe: Nested (recursive) class Pin
Guffa4-Nov-08 22:04
Guffa4-Nov-08 22:04 
GeneralRe: Nested (recursive) class Pin
wilson_borda5-Nov-08 1:37
wilson_borda5-Nov-08 1:37 
AnswerRe: Nested (recursive) class Pin
Steven J Jowett4-Nov-08 22:13
Steven J Jowett4-Nov-08 22:13 
GeneralRe: Nested (recursive) class Pin
wilson_borda5-Nov-08 1:42
wilson_borda5-Nov-08 1:42 
GeneralRe: Nested (recursive) class Pin
Steven J Jowett5-Nov-08 2:01
Steven J Jowett5-Nov-08 2:01 
GeneralRe: Nested (recursive) class Pin
wilson_borda5-Nov-08 3:19
wilson_borda5-Nov-08 3:19 
GeneralRe: Nested (recursive) class Pin
Guffa5-Nov-08 7:53
Guffa5-Nov-08 7:53 
AnswerRe: Nested (recursive) class Pin
Mark Churchill5-Nov-08 11:50
Mark Churchill5-Nov-08 11:50 
QuestionOut of Memory Exception Pin
AR Reddy4-Nov-08 17:42
AR Reddy4-Nov-08 17:42 
AnswerRe: Out of Memory Exception Pin
_Damian S_4-Nov-08 19:52
professional_Damian S_4-Nov-08 19:52 
Question[Message Deleted] Pin
songkeqiang4-Nov-08 15:07
songkeqiang4-Nov-08 15:07 
AnswerRe: How can I access the IE Temporary folder? Pin
Dave Kreskowiak4-Nov-08 16:20
mveDave Kreskowiak4-Nov-08 16:20 
QuestionOffice Communications Server Pin
alexfromto4-Nov-08 10:07
alexfromto4-Nov-08 10:07 
AnswerRe: Office Communications Server Pin
Dave Kreskowiak4-Nov-08 16:21
mveDave Kreskowiak4-Nov-08 16:21 
QuestionHTML Auto-Indent Pin
Saul Johnson4-Nov-08 7:49
Saul Johnson4-Nov-08 7:49 
AnswerRe: HTML Auto-Indent Pin
Dave Kreskowiak4-Nov-08 16:23
mveDave Kreskowiak4-Nov-08 16:23 
GeneralRe: HTML Auto-Indent Pin
Saul Johnson6-Nov-08 9:05
Saul Johnson6-Nov-08 9:05 

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.