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.

Newcomers DBPro Corner / byte,word,long,file, Help

Author
Message
Black Shadow
20
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 6th Mar 2005 06:49 Edited at: 6th Mar 2005 06:51
OK I know what A byte is but, what is a "word" a "float" and a "long" and a "long word"?
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Mar 2005 10:13 Edited at: 6th Mar 2005 10:14
I have never heard of a long word before the only types like this that you can read/write to file are

word, byte, long (integer), float (real) , string




Black Shadow
20
Years of Service
User Offline
Joined: 14th Oct 2004
Location:
Posted: 8th Mar 2005 05:57
Thanks for your Help!
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 8th Mar 2005 06:40
i would also recommend looking at this thread:
http://forum.thegamecreators.com/?m=forum_view&t=47531&b=1

i have had problems when creating user defined types.
like:

type Chicken_location
x as float
y as byte
z as integer
endtype

dim c(3) as chicken location

if i try direct mathmetical operators to part of it, like
z=c(1).z*c(1).y
i often get some unexpected result.
but then, if i say
z=c(1).z
y=c(1).y
x=z*y

x is what i think it should be. this may only be a problem with BYTEs
or it may be with all things. so pass your byte and word variables into 'dummy' integers before applying maths.

bob

Login to post a reply

Server time is: 2024-11-13 20:11:22
Your offset time is: 2024-11-13 20:11:22