Login to get access to all resources of Money Maker Machine - Forum
Open Source Roulette Systems and Roulette Tools Forum.
May 25, 2013, 12:03:39 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
French German Italian Dutch Spanish Portuguese Korean Chinese Simplified Japanese Greek Arabic Russian
 
   Home   Help Search Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]   Go Down
  Print  
Author Topic: Again problems with array's  (Read 76 times)
0 Members and 1 Guest are viewing this topic.
MrCoolLion
VIP Member [Low Activity]
Trade Count: (0)
Newbie
*

Karma: 0
Offline Offline

:December 29, 2011, 01:01:26 AM
Posts: 13
Referrals: 0



Activity
0%


« on: November 11, 2011, 03:03:59 PM »

I am having troubles with decleration of arrays.
I have the perception that I first need to declare variables and then I can declare the variable as an array after which i can use it. But i keep getting compiler errors ;-(

So what am i doing wrong??? Here is the code i tested it with. I studied most of the araay related posts but stil am having problems with declaring of variables, how, where and when!!

Need some help!  Grin


// Variables Declaration and set to 0           
Var k,CountNbr,CountNoWin;
begin           
    CountNbr:=VarArrayCreate([0,36],12) of Integer;
    CountNoWin:=VarArrayCreate([0,12],[0,6000],12) of Integer; // Set variable as array
     for k := 0 to 36 do begin CountNbr[k] := 0 ;CountNoWin[k] := 0; end; // Set everything to 0   
end;
// End Variables Declaration 


Regards,

Paul
« Last Edit: November 11, 2011, 04:40:41 PM by MrCoolLion » Logged
Silver
Moderator
Trade Count: (+8)
Sr. Member
*****

Karma: 79
Offline Offline

:Yesterday at 11:00:48 AM
Posts: 585
Referrals: 1



Activity
0%

RSS Expert


« Reply #1 on: November 11, 2011, 06:36:15 PM »

the words
of Integer
are not needed.

Also read - http://www.money-maker-machine.com/forum/silvers-room/more-fun-with-arrays/
Logged

RSS is limited only by your imagination ...

Have any error with your script or any question with it - go to SILVER's Room board for free help.
Need a fully functional and well organized RSS Script - visit http://silver.money-maker-machine.com
thomasgrant
PLATINUM Member
Trade Count: (+1)
Hero Member
***

Karma: 1643
Offline Offline

:Yesterday at 07:04:18 PM
Posts: 3082
Referrals: 21



Activity
20%

RSS Writer and Teacher


WWW
« Reply #2 on: November 11, 2011, 08:25:29 PM »

Ahh dear...
Fun with Arrays.
Silver is correct.

Your almost there.
Once you get them.
You get them.
Logged

"Live long and prosper." Spock
www.thomasrgrant.com

The Roulette Professor.
http://rouletteprofesor.com/
MrCoolLion
VIP Member [Low Activity]
Trade Count: (0)
Newbie
*

Karma: 0
Offline Offline

:December 29, 2011, 01:01:26 AM
Posts: 13
Referrals: 0



Activity
0%


« Reply #3 on: November 12, 2011, 11:26:04 PM »

I am having troubles with decleration of arrays.
I have the perception that I first need to declare variables and then I can declare the variable as an array after which i can use it. But i keep getting compiler errors ;-(

So what am i doing wrong??? Here is the code i tested it with. I studied most of the araay related posts but stil am having problems with declaring of variables, how, where and when!!

Need some help!  Grin


// Variables Declaration and set to 0           
Var k,CountNbr,CountNoWin;
begin           
    CountNbr:=VarArrayCreate([0,36],12) of Integer;
    CountNoWin:=VarArrayCreate([0,12],[0,6000],12) of Integer; // Set variable as array
     for k := 0 to 36 do begin CountNbr[k] := 0 ;CountNoWin[k] := 0; end; // Set everything to 0   
end;
// End Variables Declaration 


Regards,

Paul
Got it working ... thanks for the help.....
Logged
Tags: array variable decleration 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Problems with screen size
Support
bugman69 1 67 Last post February 02, 2011, 08:41:46 PM
by MMM Admin
Problems running scripts
General Discussion
reggert32 2 98 Last post March 01, 2011, 07:12:00 PM
by reggert32
what better way to bet on all 10 numbers Array AR10?
SILVER's Coding Room
ombrerico 7 193 Last post September 12, 2011, 04:10:53 PM
by ombrerico
Cannot fill array with a number with decimal places like 0.1 to calculate with
SILVER's Coding Room
MrCoolLion 3 106 Last post December 24, 2011, 03:24:44 PM
by MrCoolLion
Resize Array
SILVER's Coding Room
mitulatbati 3 272 Last post September 05, 2012, 06:56:18 AM
by Silver
Powered by MySQL Powered by PHP Money Maker Machine © 2007-2011
Powered by SMF | SMF © 2006, Simple Machines
SMFAds for Free Forums | Sitemap | Sitemap
Valid XHTML 1.0! Valid CSS!


March 30, 2013, 06:09:13 AM