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 / DarkBasic Syntax Help

Author
Message
Llag
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location:
Posted: 23rd Sep 2003 23:20
I just needed a couple things cleared up:

- Can arrays be declared somehow inside user defined types?

- From the help "If you want your variable to store a
string, you must add a dollar character ($) as the last character of the variable name." But you can also just say VAR AS STRING and refer to it as VAR from then on (as opposed to VAR$ which wont work anyway) - does anyone else think that is weird?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 23rd Sep 2003 23:29
1. Arrays in types - I believe they are working on it but not yet. You can have types as arrays.

DIM Array(5) as MyType

2. Just use the $ notation, it makes your code easier to interpret in any case.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php

Login to post a reply

Server time is: 2024-09-21 01:02:21
Your offset time is: 2024-09-21 01:02:21