Severe Error: Expression too complex!

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators:Administrator, Global Moderator

Post Reply
Guest
Severe Error: Expression too complex!

Post by Guest » Wed Oct 01, 2003 1:59 am

Help!

I wrote a QBasic program (.bas) that runs fine inside the QBasic 4.5 interpreter but fails to compile (.exe).

One (1) severe error is given indicating "expression too complex ??? I have tried al sorts of modifications using subroutines and rewriting expressions but problem could not be fixed so far.

Looking for some QuickBasic expertise from self proclamed experts!

Pleun Troost
(407) 247-0756

Afrow_UK
Newbie
Posts:8
Joined:Sun Sep 21, 2003 9:36 pm

Re: Severe Error: Expression too complex!

Post by Afrow_UK » Wed Oct 01, 2003 10:40 pm

I think this is what I get also on my SearchFile% function.
It's stopping the compiler build an exe, but it runs fine.

-Stu

User avatar
GPfault
Jr. Member
Posts:13
Joined:Mon Dec 02, 2002 9:14 pm

Re: Severe Error: Expression too complex!

Post by GPfault » Wed Dec 03, 2003 2:26 am

See if you can perform the computation in stages.  Use some intermediate variables.  A few little chunks are more managable than one huge chunk.
For instance a+b* 123-SQR(72+4^a)*LOG(b)*(23^a ----1)
could be split up as follows:

temp1 = (72+4^a)
temp2 = (23^a ----1)
temp3 = SQR(temp1)*LOG(b)*temp2
answer = a + b*123 - temp3
And there you have it.  Same answer.  Just pay attention to order of operations.

Post Reply