This attribute allows the file functions in the visual basic compatibility library to treat them as fixed - length strings 此属性使visual basic兼容库中的文件函数将这些字符串作为定长串处理。
Visual basic 6 . 0 and earlier versions support fixed - length strings ; when put to a file , the length descriptor is not written Visual basic 6 . 0和较早版本支持固定长度字符串,在放入文件时,不用写入长度说明符。
Visual basic 6 . 0 and earlier versions support fixed - length strings and when read to a file , the length descriptor is not written Visual basic 6 . 0和较早版本支持固定长度字符串,在读入文件时,不会写入长度说明符。
In visual basic 6 . 0 , strings assigned to a fixed - length string in a user - defined type are automatically truncated if they are longer than the fixed length 在visual basic 6 . 0中,如果分配给用户定义的类型中定长串的字符串比固定长度长,则它们会自动被截断。
To fix this problem , find any code that assigns a string to the fixed - length string and add code to check the length of the string and truncate it if necessary 若要修复此问题,请查找向定长串分配字符串的所有代码,添加代码来检查字符串的长度,如果必要,则将字符串截断:
Visual basic now has the same variable types , arrays , user - defined types , classes , and interfaces as visual c and any other language that targets the common language runtime ; however , some features such as fixed - length strings had to be removed from the language 现在, visual basic具有同visual c + +以及针对公共语言运行库的其他任何语言相同的变量类型、数组、用户定义的类型、类和接口;然而,不得不将某些功能(如定长串)从该语言中移除。