Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding extra parameters to events Pin
Shameel13-Aug-12 23:57
professionalShameel13-Aug-12 23:57 
AnswerRe: Adding extra parameters to events Pin
BillWoodruff13-Aug-12 23:39
professionalBillWoodruff13-Aug-12 23:39 
GeneralRe: Adding extra parameters to events Pin
Pete O'Hanlon13-Aug-12 23:42
mvePete O'Hanlon13-Aug-12 23:42 
GeneralRe: Adding extra parameters to events Pin
SledgeHammer0114-Aug-12 7:21
SledgeHammer0114-Aug-12 7:21 
QuestionSend a double to array Pin
sina rahimzadeh13-Aug-12 8:17
sina rahimzadeh13-Aug-12 8:17 
AnswerRe: Send a double to array Pin
Abhinav S13-Aug-12 8:26
Abhinav S13-Aug-12 8:26 
GeneralRe: Send a double to array Pin
sina rahimzadeh13-Aug-12 9:24
sina rahimzadeh13-Aug-12 9:24 
AnswerRe: Send a double to array Pin
Liam Cairns Kelly13-Aug-12 9:13
Liam Cairns Kelly13-Aug-12 9:13 
Are you wondering how to assign a variable to an array?

If your array is a Float type then it's rather straight forward, see below.

C#
float[] Variable = new float[ /*Insert how many index's the variable should hold*/ ];
Variable[0] = //insert variable here


Basically, the Variable[0] is the new variable array with the index (place of the array that you want to write on) which always begins at 0. So, in this case the first index of the array is 0, the second index is 1 and so on and so fourth.

If you need to put a variable that isn't of the float type then you can convert it into that type using the command below.
C#
Convert.toInt32();


Hope this has been of some help and I didn't make it seem over complicated! :P

Best of luck learning c#. Smile | :)
AnswerRe: Send a double to array Pin
BillWoodruff14-Aug-12 7:39
professionalBillWoodruff14-Aug-12 7:39 
GeneralHow to Generate Folder? Pin
Mena Alfons13-Aug-12 7:11
Mena Alfons13-Aug-12 7:11 
GeneralRe: How to Generate Folder? Pin
Ravi Bhavnani13-Aug-12 7:18
professionalRavi Bhavnani13-Aug-12 7:18 
Questionview MS Word from web Pin
Jassim Rahma13-Aug-12 5:05
Jassim Rahma13-Aug-12 5:05 
QuestionRe: view MS Word from web Pin
Eddy Vluggen13-Aug-12 5:22
professionalEddy Vluggen13-Aug-12 5:22 
AnswerRe: view MS Word from web Pin
Jassim Rahma13-Aug-12 9:18
Jassim Rahma13-Aug-12 9:18 
AnswerRe: view MS Word from web Pin
Eddy Vluggen13-Aug-12 9:23
professionalEddy Vluggen13-Aug-12 9:23 
GeneralRe: view MS Word from web Pin
Jassim Rahma13-Aug-12 10:10
Jassim Rahma13-Aug-12 10:10 
NewsRe: view MS Word from web Pin
Eddy Vluggen13-Aug-12 11:39
professionalEddy Vluggen13-Aug-12 11:39 
AnswerRe: view MS Word from web Pin
Vijay Selvaraj26-Aug-12 22:07
Vijay Selvaraj26-Aug-12 22:07 
Questioncreate a new process at runtime Pin
George Nistor13-Aug-12 4:54
George Nistor13-Aug-12 4:54 
AnswerRe: create a new process at runtime Pin
Wes Aday13-Aug-12 5:17
professionalWes Aday13-Aug-12 5:17 
AnswerRe: create a new process at runtime Pin
Eddy Vluggen13-Aug-12 5:20
professionalEddy Vluggen13-Aug-12 5:20 
AnswerRe: create a new process at runtime Pin
Dave Kreskowiak13-Aug-12 5:22
mveDave Kreskowiak13-Aug-12 5:22 
GeneralRe: create a new process at runtime Pin
George Nistor13-Aug-12 5:27
George Nistor13-Aug-12 5:27 
GeneralRe: create a new process at runtime Pin
Dave Kreskowiak13-Aug-12 17:08
mveDave Kreskowiak13-Aug-12 17:08 
QuestionDeclaring a connection string in class file Pin
Member 925960613-Aug-12 3:21
Member 925960613-Aug-12 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.