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

Visual Basic

 
GeneralRe: Please Help Pin
Noufe3-Feb-09 22:26
Noufe3-Feb-09 22:26 
GeneralRe: Please Help Pin
Dave Kreskowiak4-Feb-09 2:07
mveDave Kreskowiak4-Feb-09 2:07 
QuestionTextBox focus on loading form Pin
Richard W Allen3-Feb-09 0:00
Richard W Allen3-Feb-09 0:00 
AnswerRe: TextBox focus on loading form Pin
Richard W Allen3-Feb-09 2:01
Richard W Allen3-Feb-09 2:01 
QuestionDateTimePicker Pin
vijay24822-Feb-09 21:45
vijay24822-Feb-09 21:45 
AnswerRe: DateTimePicker Pin
Rupesh Kumar Swami2-Feb-09 22:32
Rupesh Kumar Swami2-Feb-09 22:32 
GeneralRe: DateTimePicker [modified] Pin
vijay24822-Feb-09 23:03
vijay24822-Feb-09 23:03 
QuestionModifying user defined structures in a collection Pin
Jay Royall2-Feb-09 21:43
Jay Royall2-Feb-09 21:43 
Hi,

I have a collection of Structures and I need to modify these structures. Am I able to do this without first removing the structure from the collection, making the modifications and then reinserting back into the collection?

I have tried using:
Ctype(Collection.Item("Item"), StructureName).Property = Value 


but I get a compile error saying that 'Expression is a value and therefore cannot be the target of an assignment'

I have also tried
Collection.Item("Item").Property = Value

but get a RTE saying that 'Late-bound assignment to a field of a value type 'Group' is not valid when 'Group' is the result of a late-bound expression' (Group is the nam,e of my structure, BTW).

I have modified objects in a collection using the Ctype method but am unable to do it with structures so currently am removing from the collection first. Any advice is appreciated. Thanks Smile | :)
AnswerRe: Modifying user defined structures in a collection Pin
Tony Richards2-Feb-09 23:47
Tony Richards2-Feb-09 23:47 
GeneralRe: Modifying user defined structures in a collection Pin
Jay Royall2-Feb-09 23:59
Jay Royall2-Feb-09 23:59 
GeneralRe: Modifying user defined structures in a collection Pin
supercat93-Feb-09 6:04
supercat93-Feb-09 6:04 
GeneralRe: Modifying user defined structures in a collection Pin
Guffa3-Feb-09 13:51
Guffa3-Feb-09 13:51 
GeneralRe: Modifying user defined structures in a collection Pin
Jay Royall3-Feb-09 22:06
Jay Royall3-Feb-09 22:06 
GeneralRe: Modifying user defined structures in a collection Pin
Jay Royall3-Feb-09 2:21
Jay Royall3-Feb-09 2:21 
QuestionI would love to learn how to use my compiler.. It is of a strange new language to will anyone volenteer to help teach me ? Pin
sweldon0012-Feb-09 19:48
sweldon0012-Feb-09 19:48 
AnswerRe: I would love to learn how to use my compiler.. It is of a strange new language to will anyone volenteer to help teach me ? Pin
Jay Royall2-Feb-09 21:51
Jay Royall2-Feb-09 21:51 
AnswerRe: I would love to learn how to use my compiler.. It is of a strange new language to will anyone volenteer to help teach me ? Pin
EliottA3-Feb-09 2:39
EliottA3-Feb-09 2:39 
Questionclear variables Pin
aswd2-Feb-09 18:12
aswd2-Feb-09 18:12 
AnswerRe: clear variables Pin
MohammadAmiry2-Feb-09 18:22
MohammadAmiry2-Feb-09 18:22 
GeneralRe: clear variables Pin
aswd2-Feb-09 18:26
aswd2-Feb-09 18:26 
GeneralRe: clear variables Pin
Dave Kreskowiak2-Feb-09 18:36
mveDave Kreskowiak2-Feb-09 18:36 
GeneralRe: clear variables Pin
aswd2-Feb-09 18:41
aswd2-Feb-09 18:41 
GeneralRe: clear variables Pin
Christian Graus2-Feb-09 19:18
protectorChristian Graus2-Feb-09 19:18 
GeneralRe: clear variables Pin
aswd2-Feb-09 19:28
aswd2-Feb-09 19:28 
GeneralRe: clear variables Pin
Dave Kreskowiak3-Feb-09 1:47
mveDave Kreskowiak3-Feb-09 1:47 

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.