|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
copying part of a string
In Delphi, I would use...
----------------------------- var tmpstart : String; StartString = "0700" tmpstart = Copy(StartString, 0, 2) ----------------------------- The above would give tmpstart a value of "07" Can anybody tell me the vb equivalent code? ta |
|
#2
|
||||
|
||||
|
To the best of my memory recall, you use:
thisVar = left(thatVar,2) to get the substring from the left. thisvar = right(thatvar,2) to get the substring from the right. and thisvar = mid(thatvar,2,len(thatvar) to get the substring from the middle. |
|
#3
|
|||
|
|||
|
ta
|
![]() |
| Viewing: Dev Shed Forums > Other > Dev Shed Lounge > copying part of a string |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|