Welcome, Guest. Please login or register.

Author Topic: Bug in ARexx + datatypes.library?  (Read 2156 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline carlsTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1047
    • Show all replies
Bug in ARexx + datatypes.library?
« on: December 06, 2004, 02:22:32 AM »
When using datatypes.library's ExamineDT() to a stem, the stem.DataType char can't be used correctly in in comparisons!

For example, if the DataType is "ILBM" I can't do
if stem.DataType="ILBM" then
  say "Hello!"

Has anyone else experienced this?

I'm running WB 3.1 on kick 3.0 (yes, I own a 3.1 ROM too but it's in my unused A1200T currently), maybe this has something to do with it?

Here's the complete test code with comments on the output I get: http://gonzo.1av10.nu/testdt.rx

Any help would be greatly appreciated!
Amiga: Too weird to live, too rare to die.
 

Offline carlsTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1047
    • Show all replies
Re: Bug in ARexx + datatypes.library?
« Reply #1 on: December 06, 2004, 09:36:24 AM »
Thanks for testing it guys!

nOw2:
I don't think so; I'm adding "A" to both sides of the value and no spaces appear, when I print the value encapsulated by brackets there no extra spaces appear either. I'll try using left() though, that should at least return a proper variable. I hope. :)

I should probably test it using datatypes.library from Workbench 3.0 and see what happens. Perhaps there's a bug in the 3.1 version.

Amiga: Too weird to live, too rare to die.
 

Offline carlsTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1047
    • Show all replies
Re: Bug in ARexx + datatypes.library?
« Reply #2 on: December 06, 2004, 02:02:42 PM »
Thomas: Thanks!
I would never have thought of that.
Amiga: Too weird to live, too rare to die.
 

Offline carlsTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1047
    • Show all replies
Re: Bug in ARexx + datatypes.library?
« Reply #3 on: December 06, 2004, 10:22:40 PM »
Waddaya know, it works! :)
Amiga: Too weird to live, too rare to die.