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

Visual Basic

 
QuestionFormatting question [modified] Pin
Sonhospa22-Sep-08 11:45
Sonhospa22-Sep-08 11:45 
AnswerRe: Formatting question Pin
Johan Hakkesteegt24-Sep-08 2:06
Johan Hakkesteegt24-Sep-08 2:06 
QuestionRe: Formatting question Pin
Sonhospa25-Sep-08 0:29
Sonhospa25-Sep-08 0:29 
QuestionRe: Formatting question Pin
Sonhospa25-Sep-08 0:54
Sonhospa25-Sep-08 0:54 
AnswerRe: Formatting question Pin
Johan Hakkesteegt25-Sep-08 1:01
Johan Hakkesteegt25-Sep-08 1:01 
QuestionRe: Formatting question Pin
Sonhospa25-Sep-08 1:33
Sonhospa25-Sep-08 1:33 
AnswerRe: Formatting question Pin
Johan Hakkesteegt25-Sep-08 3:30
Johan Hakkesteegt25-Sep-08 3:30 
GeneralRe: Formatting question Pin
Sonhospa25-Sep-08 6:57
Sonhospa25-Sep-08 6:57 
Hi Johan, that sounds like a good solution - at first sight.

With your function I'd only have to change the second line of my (hundreds of) property-reading statements, right?
hDWORD = SwapDWORD(br.ReadUInt32)
.fileSize = OverTheMax(hDWORD)

Some important things make me hesitate:
- My property variables (e.g. '.fileSize') are different types (Byte, Int16, Int32, Single etc.) depending on their purpose. I'd have to re-write your function different (the 'ByVal'-part) for every type, no?
- Plus: For each and every value a data type 'string' is returned, so that I would have to declare all the property variables as string types first, and then re-convert each one to what it was before, using another property variable of the correct type.

I'm not sure if the rewards of 'nicer looks' is worth the cost? What do you think?

Thanks
Michael
GeneralRe: Formatting question Pin
Johan Hakkesteegt25-Sep-08 19:51
Johan Hakkesteegt25-Sep-08 19:51 
GeneralRe: Formatting question Pin
Sonhospa25-Sep-08 22:17
Sonhospa25-Sep-08 22:17 
AnswerRe: Formatting question Pin
Johan Hakkesteegt25-Sep-08 0:57
Johan Hakkesteegt25-Sep-08 0:57 
AnswerRe: Formatting question Pin
Sonhospa25-Sep-08 1:37
Sonhospa25-Sep-08 1:37 
QuestionFile Counting in VB Pin
Sonhospa22-Sep-08 11:23
Sonhospa22-Sep-08 11:23 
AnswerRe: File Counting in VB Pin
Gagan.2023-Sep-08 1:10
Gagan.2023-Sep-08 1:10 
GeneralRe: File Counting in VB Pin
Sonhospa23-Sep-08 1:42
Sonhospa23-Sep-08 1:42 
GeneralRe: File Counting in VB Pin
Dave Kreskowiak23-Sep-08 2:02
mveDave Kreskowiak23-Sep-08 2:02 
NewsRe: File Counting in VB Pin
Sonhospa23-Sep-08 2:07
Sonhospa23-Sep-08 2:07 
NewsRe: File Counting in VB [modified] Pin
Sonhospa23-Sep-08 3:01
Sonhospa23-Sep-08 3:01 
QuestionAccessing the "this" pointer Pin
Eric Burns22-Sep-08 10:18
Eric Burns22-Sep-08 10:18 
AnswerRe: Accessing the "this" pointer Pin
Adam Maras22-Sep-08 10:30
Adam Maras22-Sep-08 10:30 
AnswerRe: Accessing the "this" pointer Pin
Paul Conrad22-Sep-08 14:25
professionalPaul Conrad22-Sep-08 14:25 
QuestionIs it possible to retrieve the GUID for a .dll based on the name only? Pin
Jon_Boy22-Sep-08 5:00
Jon_Boy22-Sep-08 5:00 
AnswerRe: Is it possible to retrieve the GUID for a .dll based on the name only? Pin
Jon_Boy22-Sep-08 8:28
Jon_Boy22-Sep-08 8:28 
GeneralRe: Is it possible to retrieve the GUID for a .dll based on the name only? Pin
Dave Kreskowiak22-Sep-08 8:52
mveDave Kreskowiak22-Sep-08 8:52 
GeneralRe: Is it possible to retrieve the GUID for a .dll based on the name only? Pin
Jon_Boy22-Sep-08 13:37
Jon_Boy22-Sep-08 13:37 

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.