Click here to Skip to main content
15,914,452 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 5:39
Colborne_Greg11-Jun-14 5:39 
GeneralRe: Visual Basic needs more credit Pin
dave.dolan11-Jun-14 5:45
dave.dolan11-Jun-14 5:45 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 5:51
Colborne_Greg11-Jun-14 5:51 
GeneralRe: Visual Basic needs more credit Pin
dave.dolan11-Jun-14 5:57
dave.dolan11-Jun-14 5:57 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 6:07
Colborne_Greg11-Jun-14 6:07 
GeneralRe: Visual Basic needs more credit Pin
dave.dolan11-Jun-14 6:09
dave.dolan11-Jun-14 6:09 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 6:15
Colborne_Greg11-Jun-14 6:15 
GeneralRe: Visual Basic needs more credit Pin
PIEBALDconsult10-Jun-14 5:15
mvePIEBALDconsult10-Jun-14 5:15 
My dislike of with (also in Pascal I think) is that the only place I would have liked to use it, it won't work...

If I have two things (not necessarily the same type), and I want to copy a number of values (not necessarily all the values) between them:

thing1.fieldM = thing2.fieldP ;
thing1.fieldD = thing2.fieldQ ;
...


I want a with that will allow me to do something like:

with ( thing1 , thing2 )
{
fieldM = fieldP ;
fieldD = fieldQ ;
...
}


That would be usefull. As it stands, with is pointless (in my opinion) so I have never used it.


However, one could use something like:
{
  var src = thing1 ;
  var dst = thing2 ;

  dst.fieldM = src.fieldP ;
  dst.fieldD = src.fieldQ ;
  ...
}


which is almost a good. :shrug:
You'll never get very far if all you do is follow instructions.


modified 10-Jun-14 12:54pm.

GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 5:19
Colborne_Greg10-Jun-14 5:19 
GeneralRe: Visual Basic needs more credit Pin
Ziad Elmalki11-Jun-14 2:28
Ziad Elmalki11-Jun-14 2:28 
GeneralRe: Visual Basic needs more credit Pin
thequux11-Jun-14 6:14
thequux11-Jun-14 6:14 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 6:19
Colborne_Greg11-Jun-14 6:19 
GeneralRe: Visual Basic needs more credit Pin
thequux11-Jun-14 8:12
thequux11-Jun-14 8:12 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 8:28
Colborne_Greg11-Jun-14 8:28 
GeneralRe: Visual Basic needs more credit Pin
thequux11-Jun-14 12:57
thequux11-Jun-14 12:57 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 14:24
Colborne_Greg11-Jun-14 14:24 
GeneralRe: Visual Basic needs more credit Pin
richard_k11-Jun-14 8:04
richard_k11-Jun-14 8:04 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 8:32
Colborne_Greg11-Jun-14 8:32 
GeneralRe: Visual Basic needs more credit Pin
Richard Deeming10-Jun-14 4:52
mveRichard Deeming10-Jun-14 4:52 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 5:05
Colborne_Greg10-Jun-14 5:05 
GeneralRe: Visual Basic needs more credit Pin
Richard Deeming10-Jun-14 5:57
mveRichard Deeming10-Jun-14 5:57 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 6:04
Colborne_Greg10-Jun-14 6:04 
GeneralRe: Visual Basic needs more credit Pin
Richard Deeming10-Jun-14 6:10
mveRichard Deeming10-Jun-14 6:10 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 6:12
Colborne_Greg10-Jun-14 6:12 
GeneralRe: Visual Basic needs more credit Pin
richard_k11-Jun-14 8:05
richard_k11-Jun-14 8: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.