Posted by Muhammad Ali Shah on 1999-08-10
Hello All, Since there are no posts for the last few days, I have another question for VB programmers. How exactly a string is handled in Visual Basic? In more appropriate terms, I would like to know: 1. In Pascal we have fixed length strings that have length stored in the first byte. In C language, the strings are null terminated. What exactly is a string in VB? 2. What is the difference between "Dim aStr as string" and "Dim aStr as string * 20"? 3. Why can't I read/write data to a file with the following structure TYPE employee dim name as string dim age as integer END TYPE If however, I use fiexed length strings, the read/write functions do exactly what they are intended. All the best... Ali. mashah@xxxxx.xxx.xx BCS IV - FAST Institute of Computer Science, Karachi
Previous post | Next post | Timeline | Home