Right. Fields can't display null characters, but variables can hold them.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web site: http://www.sonsothunder.com/

----- Original Message ----- 
From: "Dar Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 3:00 PM
Subject: Nulls in fields (was alphaData ...)


> I should have checked this first.
> 
> on mouseUp
>    put numToChar(0) into field "Test"
>    put "Field Length: " & the length of field "Test" into field "Report"
>    put numToChar(0) into test
>    put "   Variable Length: " & the length of test after field "Report"
> end mouseUp
> 
> This puts "Field Length: 0   Variable Length: 1" into field "Report".
> 
> The old C strings are terminated with a null, that is, 
> numToChar(0).  Perhaps at 3 AM a sleepy programmer reverted back to 
> C habits.
> 
> I don't know if this is the only problem with content in fields, 
> but if so, the caveat is this:
> 
>     Fields may not behave as expected if any char is numToChar(0).
> 
> Dar Scott
> 
> _______________________________________________
> improve-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/improve-revolution
> 

_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution

Reply via email to