![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am looking at some code written by someone else and I find it strange looking and confusing. *It looks like an assignment coded in reverse. The statement is: Mid$(gstrUserRoot, 27,7) = gstrUserId How should this be interpreted? *Thanks. |
#3
| |||
| |||
|
|
I am looking at some code written by someone else and I find it strange looking and confusing. It looks like an assignment coded in reverse. The statement is: Mid$(gstrUserRoot, 27,7) = gstrUserId How should this be interpreted? Thanks. Hi Charles, It is the Mid statement, in which you can replace the specified characters by another value. Imb. |
#4
| |||
| |||
|
|
"imb" <imb4u (AT) onsmail (DOT) nl> wrote in message news:7a31fda8-97cb-4b93-9866-153f2ff4e47e (AT) u6g2000vbh (DOT) googlegroups.com... On Mar 2, 11:56 pm, "Charles Hottel" <chot... (AT) earthlink (DOT) net> wrote: I am looking at some code written by someone else and I find it strange looking and confusing. It looks like an assignment coded in reverse. The statement is: Mid$(gstrUserRoot, 27,7) = gstrUserId How should this be interpreted? Thanks. Hi Charles, It is the Mid statement, in which you can replace the specified characters by another value. Imb. Thanks, but I did know that. Perhaps I can make my question clearer. This appears to be assiging the value of a variable to a function, but that makes no sense to me, so I assume that the statement above is equivalent to: gstrUserId = Mid$(gstrUserRoot, 27,7) which assigns the value of a function to a variable. Is that correct? I did not know that the first syntax was legal. var = "Help Me" |
#5
| |||
| |||
|
|
"imb" <imb4u (AT) onsmail (DOT) nl> wrote in message news:7a31fda8-97cb-4b93-9866-153f2ff4e47e (AT) u6g2000vbh (DOT) googlegroups.com... On Mar 2, 11:56 pm, "Charles Hottel" <chot... (AT) earthlink (DOT) net> wrote: I am looking at some code written by someone else and I find it strange looking and confusing. It looks like an assignment coded in reverse. The statement is: Mid$(gstrUserRoot, 27,7) = gstrUserId How should this be interpreted? Thanks. Hi Charles, It is the Mid statement, in which you can replace the specified characters by another value. Imb. Thanks, but I did know that. Perhaps I can make my question clearer. This appears to be assiging the value of a variable to a function, but that makes no sense to me, so I assume that the statement above is equivalent to: gstrUserId = Mid$(gstrUserRoot, 27,7) which assigns the value of a function to a variable. Is that correct? I did not know that the first syntax was legal. |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |