473,473 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need help with Array

Hi. I am trying to structure a command that returns an array. First,
let me show some working code:

string strEKey = AdminService.AccountGetEncryptionKey(intAccount,
"Account holder forgot encryption key");

This works. Notice the AdminService function. I want to do something
similar but the command returns an array not a string. The command
specifically performs a search, I have one piece of criteria and I do
not know how to structure the command.

Array:
AdminAPIBaseAccountInfoList[] = AdminService.CommunityFindAccounts(int
CommunityID, SAconnect.SEARCHFIELD FieldName, string FieldValue,
SAconnect.Account_Status status);

I know one of the pieces of information, for example Field name which
would be the user domain login account.

How can I perform the command:
I am trying something like this:

AdminAPIBaseAccountInfoList[] = AdminService.CommunityFindAccounts(,
SAconnect.SEARCHFIELD Domain, string myid,);

Also, the debugger is saying that the = has a "idenifier expected as
well"

Thanks in advance for any help.

Daveg
Nov 16 '05 #1
1 1075
Dave Guenthner <da***@guenthners.com> wrote:
Hi. I am trying to structure a command that returns an array. First,
let me show some working code:

string strEKey = AdminService.AccountGetEncryptionKey(intAccount,
"Account holder forgot encryption key");

This works. Notice the AdminService function. I want to do something
similar but the command returns an array not a string. The command
specifically performs a search, I have one piece of criteria and I do
not know how to structure the command.

Array:
AdminAPIBaseAccountInfoList[] = AdminService.CommunityFindAccounts(int
CommunityID, SAconnect.SEARCHFIELD FieldName, string FieldValue,
SAconnect.Account_Status status);

I know one of the pieces of information, for example Field name which
would be the user domain login account.

How can I perform the command:
I am trying something like this:

AdminAPIBaseAccountInfoList[] = AdminService.CommunityFindAccounts(,
SAconnect.SEARCHFIELD Domain, string myid,);

Also, the debugger is saying that the = has a "idenifier expected as
well"


You haven't declared a variable name. Use

AdminAPIBaseAccountInfoList[] lists =
AdminService.CommunityFindAccounts(...);

Note that your parameters are rather odd too - you aren't specifying
the first or the last ones, and you shouldn't be including the type for
the third parameter.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Nathan Rose | last post by:
Here's my problem. I am reading from a text file using this: if (!file_exists($file)) { echo "Don't exist\n"; return false; } $fd = @fopen($file, 'r'); if (!is_resource($fd))
4
by: KellyH | last post by:
Hi, I hope someone can point me in the right direction. I'll get it out of the way: Yes, I am a college student. No, I am not looking for anyone to do my homework, just looking for help. I have...
3
by: Tommy Lang | last post by:
I am working on this project and I need some help/pointers/comments to get me started, I am stuck. The program will be used to store information in an array while it is running. I need to store...
23
by: vinod.bhavnani | last post by:
Hello all, I need desperate help Here is the problem: My problem today is with multidimensional arrays. Lets say i have an array A this is a 4 dimensional static array.
12
by: gcary | last post by:
I am having trouble figuring out how to declare a pointer to an array of structures and initializing the pointer with a value. I've looked at older posts in this group, and tried a solution that...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.