Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why Can I pass Fixed length strings as parameters to VsamEx or VB/ISAM Functions?

0
Posted

Why Can I pass Fixed length strings as parameters to VsamEx or VB/ISAM Functions?

0

In VB, all parameters that are defined as strings for VB/ISAM are required to be variable length. Some of the parameters that are passed to VB/ISAM functions will return variable length string data, so if you pass a fixed length string as a parameter to a VB/ISAM function, the results are unpredictable and may result in a system fault of some kind. On the other hand, fixed length strings are OK when used inside a Visual Basic User Defined Type’s (UDT), as data elements, and that UDT is the record structure used to read and write data. But even here we discourage the use of fixed length strings. Furthermore, VB.NET does not support passing UDT’s to OCX’s or DLL’s or using fixed length strings.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123