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 / Data Types

Author
Message
XSlinger
18
Years of Service
User Offline
Joined: 5th Dec 2005
Location:
Posted: 6th Dec 2005 05:18
Hello, I just switched over from c++ and I was wondering what the different data types in DBP were.

Bellum extremitem haud terminus
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Dec 2005 21:20
There are 8 basic types in all. Here is the list - DBPro on the left, and the C++ equivalent on the right.

integer - int
float - float
string - char*
byte - unsigned char
word - unsigned short
dword - unsigned int
double integer - long long
double float - double

For free Plug-ins and source code http://www.matrix1.demon.co.uk
XSlinger
18
Years of Service
User Offline
Joined: 5th Dec 2005
Location:
Posted: 7th Dec 2005 01:25
Ah Thankyou

Thats reassuring because after reading some tutorials, I hadn't come across the "AS (DATATYPE)" form of declaring variables. I thought that just using a name creates an int, $ creates string, and # creates float. I thought only these three existed!

I always thought the reason that large projects compiled in c++ performed better than large projects in DBPro because DBPro only had 3 datatypes! Now, I know that is not the case so....

Why will large c++ projects perform better than large DBPro projects?

Bellum extremitem haud terminus
Dodic
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 8th Dec 2005 13:49
well i prefere doing c++ with real serious stuf even if dbp is a "little" easer to use , but i`w got an AWSOME freeware open source 3d engine for it...

i make free 3d models , then you tell me some stuff about usseles posts and then something heppen...
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 9th Dec 2005 02:02
Quote: "I thought that just using a name creates an int, $ creates string, and # creates float. I thought only these three existed!"


Could be that the tutorials you have been reading were DB Classic tutorials - which does only have those three variable types.

As you can see form IanM's post, DB Professional has a few more!

TDK_Man

XSlinger
18
Years of Service
User Offline
Joined: 5th Dec 2005
Location:
Posted: 9th Dec 2005 05:07
Ah, and what abou signed shorts?

Bellum extremitem haud terminus
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Dec 2005 14:43
There are no DBPro equivalents to signed char, short, or long double. They don't seem to be missed by anyone.

BTW, are you talking DBC or DBPro?

For free Plug-ins and source code http://www.matrix1.demon.co.uk
XSlinger
18
Years of Service
User Offline
Joined: 5th Dec 2005
Location:
Posted: 9th Dec 2005 23:12
I've been referring to DBPro. Does anyone know why large projects in c++ have better performance than in DBPro? No-one has answered yet

Bellum extremitem haud terminus

Login to post a reply

Server time is: 2024-09-24 11:18:27
Your offset time is: 2024-09-24 11:18:27