floats, strings for procedurereturn

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by BalrogSoft.

Hi...

Its would be a great feature that procedurereturn command supports another type of variables such as floats and strings. In the 3d engine that im programming i must multiply the position of objects and cams for 100000 and after divide by 100000 to get a float value.

Bye, Balrog Soft.

Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

it is and it does :)

Christos
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.

@balrogSoft

I think you declare the procedure wrong.

try this:

Code: Select all

procedure.s returnstring()
  procedurereturn "hallo"
endprocedure

debug returnstring()

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.
Originally posted by GPI

@balrogSoft

I think you declare the procedure wrong.

try this:

Code: Select all

procedure.s returnstring()
  procedurereturn "hallo"
endprocedure

debug returnstring()
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by BalrogSoft.

Thanks GPI, i will try later...
Originally posted by GPI

@balrogSoft

I think you declare the procedure wrong.

try this:

Code: Select all

procedure.s returnstring()
  procedurereturn "hallo"
endprocedure

debug returnstring()

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
[/quote]

Balrog Soft
Amiga and PC Coder
[url]http://www.balrogsoftware.com[/url]
[url]mailto:balrog@balrogsoftware.com[/url]
Post Reply