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 / Compile TIme Error : "Array Insert at Top"

Author
Message
Dejunai
19
Years of Service
User Offline
Joined: 19th Jul 2005
Location: Mentally: Manhattan; Physically: LA -doh
Posted: 27th Jul 2005 01:54
Can any explain to me why I am getting a compile time error
on this code :

dim a(0) as word
array insert at top(a(0))

also as snippet



I am using DBP Trial

================
-Dejunai
================
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 27th Jul 2005 02:38
I think it should be

array insert at top a(0)

Leeorg
19
Years of Service
User Offline
Joined: 5th Jul 2005
Location:
Posted: 27th Jul 2005 03:06
I use DB Classic, but your code looks strange. why dimension an array with a 0? there's no point - might as well not have an array.

as word - what do you mean by this?

Can you explain the 'array insert at top'? I'm not familiar with this command with any Basic language that I've used.

The above two paragraphs may explain why you get your Compile Time Error
Dejunai
19
Years of Service
User Offline
Joined: 19th Jul 2005
Location: Mentally: Manhattan; Physically: LA -doh
Posted: 27th Jul 2005 07:54
@xtom

Yep that was it... must have been way too tired to see it...
Thanks for your help...

================
-Dejunai
================

Login to post a reply

Server time is: 2024-11-27 20:48:28
Your offset time is: 2024-11-27 20:48:28