Problem with string fields from 5 to 6?

Hello.

I suddenly had a problem with something that was working fine in R5, when we moved to R6. Specifically, I had a routine that evaluated a form field that began with a $, called $tblName. The value of this field could be “s” or “p”. Now, when I check the value in the debugger, it shows up “s***********…”, where “*” is one of those blocks that suggests a null value. It also says the length is 257.

Conclusion: R6 treats text fields whose name begins with “$” as a fixed-length string of 256 characters, or perhaps appends 256 null values to the end of the string. Furthermore, it internally evaluates this as something other than the simple character that is the actual field value.

In any case, what worked before doesn’t work now. I was using this to change a tabbed field to an appropriate row.

Is this a well-known problem? Any suggestions for a fix?

Thanks,

Bob Rodes