forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Floating-Point functions used without OPTIONAL DECIMALSEP

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Mar 03, 2004 11:48 pm    Post subject: Floating-Point functions used without OPTIONAL DECIMALSEP Reply with quote

I checked by searching @F and don't seem to have any Floating-Point Functions but keep getting the ERROR.

Is there a illegal charactor I'm using in the INFO MENU or MSGBOX, etc ?

Please help, guess I'll be a newbie for awhile, lol
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Mar 03, 2004 11:52 pm    Post subject: Reply with quote

Can you expand more on your question please? I'm not sure exactly what
you mean.

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Mar 04, 2004 12:00 am    Post subject: Reply with quote

I can't build the EXE because of that ERROR:
Warning! Floating-Point functions used without OPTIONAL DECIMALSEP

heres an EXAMPLE of what I have and tried to adjust somewhat:

Is any of the below formating wrong or illegal perhaps?

Code:
IF @EQUAL(@MSGBOX(@CR()@FILL(7,,L)These are the files that will be created".""." Continue"?"@CR()Copies will be created"," Modified and or Renamed if needed.@CR()@FILL(8,,L)Any original files will be protected or backed up"."@CR()@CR()@CR()%e@CR()%%pp@CR()%%ll@CR()@CR()@CR()-----------------------------------------@CR()NOTES":"@CR()V1 V2 V3 file pre"-"extensions are normal"," they identify@CR()your new map file types "("applies to "."EDS and "."PCX files")""."@CR()C1 C2 C3 is same as V1 V2 V3 "("both mean same thing")""."@CR()C1","V1 "=" Arizona@FILL(4,,L)C2","V2 "=" Urban@FILL(4,,L)C3","V3 "=" Mountain"."@CR()@CR()-----------------------------------------,File Name and editing Confirmation"!",$001),2)
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 04, 2004 12:04 am    Post subject: Reply with quote

It looks like a decimal separator is required for using floating-point functions,
especially since they involve using decimal points. Smile

Try using OPTION DECIMALSEP,<separator> at the top of your code. Smile

EDIT: Strange, I did notice your code doesn't have any floating-point operations
in it. Confused

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Mar 04, 2004 12:12 am    Post subject: Reply with quote

well my actual code has about 3400 lines, that was just 1 line that I worked on to try to make the error go away.

But I didn't use any Floating-Point math etc..

typing OPTION DECIMALSEP,<separator> just as you see it?


and will that mess anything up? I do have regular non-floating math lines in the 3400 lines.

Its wierd, I had the ERROR few times before while working on the program. But mysteroiuslly goes away when I'm adjusting " " things, so I thought it might be my formating of MSGBOX or INFOs.
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 04, 2004 12:16 am    Post subject: Reply with quote

You should add in place of <separator> the decimal separator you are
comfortable working with and you have used in your code. Most European
countries use a comma "," as their decimal separator while American
countries use a period "." as their decimal separator. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Mar 04, 2004 12:20 am    Post subject: Reply with quote

So I should try:
OPTION DECIMALSEP "."

Will that make my normal math mess up or MSGBOX INFO problems?
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 04, 2004 12:23 am    Post subject: Reply with quote

It shouldn't change anything with regular math or info boxes - and you
can always go back and erase that line of code if it stops anything from
working. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Mar 04, 2004 12:27 am    Post subject: Reply with quote

ok I tried it and it just went in a loop, never loaded (stays at Evloop)

OPTION DECIMALSEP,"."

hmm..
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 04, 2004 12:38 am    Post subject: Reply with quote

Are you sure you haven't used something like the following in your code
that could be causing problems?

Code:
WAIT EVENT,"0,1"

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Mar 04, 2004 12:39 am    Post subject: Reply with quote

Sorry, I found what it was, I added a triple IF with a needed END.
and had the program running process invisible prolly because of the IF with no END whammy or something.
But I added the OPTION DECIMALSEP,"." line to get rid of the Floating-Point ERROR also, thanks for all the help buddy..

Smile
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Mar 04, 2004 9:08 am    Post subject: Reply with quote

The decimal separator message is only a warning, it doesn't stop the EXE being compiled. It does appear if certain functions that can take decimal values as arguments like @datetime() are used. It doesn't warn you if you use something like wait event,0.2 however. So I still release programs and then get users in Germany and so on complaining of runtime errors. Grrrr!
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group