[GiDlist] .bas file problems

Moderator: GiD Team

Post Reply
Mark Smith

[GiDlist] .bas file problems

Post by Mark Smith »

Win98 GiD 6.3.0b

Dear GiD team & users

I'm having some problems with unexpected behaviour of *if *else *elseif
etc
can you have a look at the attached code and tell me why the output is not
as expected

rgbtest.bas = sample code

rgb.txt = output of .bas code

expected.txt what I expect the output to be ( done in mathcad)


expected.txt RGBtest.bas rgb.txt

Regards
Mark





--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.

Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: expected.txt
Url: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020524/cae5d47d/attachment.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RGBtest.bas
Type: application/octet-stream
Size: 1090 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020524/cae5d47d/attachment.obj
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rgb.txt
Url: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020524/cae5d47d/attachment-0001.txt
Enrique Escolano

[GiDlist] .bas file problems

Post by Enrique Escolano »

This is bug of GiD parsing the condition if(z=e1)
the variable e1 is evaluated incorrectly as a exponential number 0e1, not as the variable named e1,
and the result is only true if z=0

This bug is corrected for the next GiD version.

You can avoid this bug if not use names as e"number" (e1, e206, etc) for the variables.

Thanks for your report.

Enrique Escolano

----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: "Gidlist (E-mail)" gidlist at gatxan.cimne.upc.es
Sent: Friday, May 24, 2002 4:38 PM
Subject: [GiDlist] .bas file problems


Win98 GiD 6.3.0b

Dear GiD team & users

I'm having some problems with unexpected behaviour of *if *else *elseif
etc
can you have a look at the attached code and tell me why the output is not
as expected

rgbtest.bas = sample code

rgb.txt = output of .bas code

expected.txt what I expect the output to be ( done in mathcad)


expected.txt RGBtest.bas rgb.txt

Regards
Mark





--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.

Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020527/b17c2d2b/attachment.htm
Post Reply