Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Powersoft
22
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 21st Sep 2003 11:00
Hi im using dbpro to make a maths homework checker but i cant seem to get the "exp" command to work.
also if you want to write a " do you have to right /" or \"

Im not an ALIEN
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Sep 2003 12:04 Edited at: 21st Sep 2003 12:09
In what 'doesn't it seem to work' ? Doesn't it return a value ?
Yes, you need matching " characters - its not like a C64, you know!


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Powersoft
22
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 21st Sep 2003 12:11
????
i dont know what you mean but the line which works out the answer keeps bringing up errors


indicies:
startoverindicies:
input "TYPE IN A NUMBER>>>",indiciesnumber#
input "WHAT DO YOU WANT TO DO TO '",indiciesnumber#,"'?>>>",indicies#
input "IS THIS RIGHT YOU WANT TO RAISE '",indiciesnumber#,"' TO THE POWER OF '",indicies#,"'?>>>",queindicies$
if queindicies$="y" then goto continueindicies else goto startoverindicies
continueindicies:
print "PLEASE WAIT...."
wait 1000
ansindicies#=
cls
print "THE ANSWER TO WHAT '",indiciesnumber#,"' IS TO THE POWER OF '",indicies#,"' IS>>>",ansindicies#
suspend for key
return


i dont know what to put at the line that is bold.

How do you print out a " sign.

Im not an ALIEN
D Man
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 21st Sep 2003 12:11
You could also use 2.718281828^value for more range(because this would be double float).

God is real, unless declared integer.
D Man
23
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 21st Sep 2003 12:14
Btw. exp is e to the power of a value.
Therefore the syntax is val#=exp(power).
If you want another value raised to the power of something you can use value^power.

God is real, unless declared integer.
Powersoft
22
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 21st Sep 2003 12:17
cheers i have fixed it now you reminded me about using ^

cheers D MAN

Im not an ALIEN
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Sep 2003 12:30
To print a ", you can use CHR$(34)


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Powersoft
22
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 21st Sep 2003 15:53
cheers. by the way how do i use your plugins/dlls

they are

inifile
internet
msgbox
osversion
printers
sendinput
splashscreen
systemtray
urldload

any help,syntax whatever would be greatly appreciated

Im not an ALIEN
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Sep 2003 16:19 Edited at: 21st Sep 2003 16:20
Well, I do have example code with each plug-in - have a look at that.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester

Login to post a reply

Server time is: 2026-07-25 08:29:08
Your offset time is: 2026-07-25 08:29:08