| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | EleBBS: EleBBS script bug |
* EleBBS Support List Hi Guys, This is mainly directed to any TP coders in the audience: I've heard some talk about the desire to release a newer official build of EleBBS include Scotts recent fixes, and I was reminded of a Q-A script bug which has existed since EleBBS version 0.9. This bug effects a oneliner script I wrote long ago, and someone asked me if I could fix the script so I took a look at it this morning and pinpointed the cause. The bug relates to assigning a padded ^F or ^K macro to a variable. In the older versions of EleBBS this could be done with no problems, but currently the result is that the padded macro is not replaced. For example: assign 1 ^F..........3 setcomment 1 display "|The comment field should now contain:" 1 display "|press any key" waitenter (Replace ^F with Control-F when entering this) Since ^F3 (Thats the Ctrl-F character, followed by 3) is the macro for the users handle, adding the .......... in-between these 2 characters tells EleBBS to make the result in variable 1 exactly 10 characters long, by either padding with spaces, or truncating. But in EleBBS 0.09, 0.10rc, or the latest unreleased build this does not work. After running the script, the comment field contains the characters ^F.........3 rather then the padded users handle. If you try the same test with the ".........." padding removed, it does place the users handle into the comment line as it should, so its the padding which causes this to break. The bug is not limited happening in the comment line, but it was an easy way to demonstrate this. It's actually a bug in the assign command. Regards, Mike _______________________________________________________________ --- Internet Rex 2.29* Origin: The gateway at The Snake (2:280/4312.101) SEEN-BY: 633/267 270 @PATH: 280/4312 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.