Questions tagged [members]
175 questions
1
vote
2 answers
How to access the members of this data in PHP?
Okay. Now I give up. I have been playing with this for hours.
I have a variable name $data.
The variable contains these contents: (extracted by using var_export())
array (
'headers' =>
array (
'content-type' => 'multipart/alternative;…

Nathan Osman
- 71,149
- 71
- 256
- 361
1
vote
2 answers
Abbreviating similar data members
The following code illustrates the problem:
struct Data {
int numFriends, numAcquaintances, numDates;
// etc...
};
enum Country {USA, Canada, China}; // etc...
enum Personality {Serious, Lazy, Funny}; // etc...
enum Height {SuperShort,…

prestokeys
- 4,817
- 3
- 20
- 43
1
vote
1 answer
List all Sub-Groups (members) of Groups in Active Directory - Powershell
I'd like to get help to create simple script.
All it has to do is list sub-groups of groups, it shouldn't be even recursive and formatting for now is not that important.
I created script, but all it does, it writes lines with GROUP=$group but not…

Phoneutria
- 351
- 4
- 9
- 17
1
vote
4 answers
c++ dynamic classes without using vector
So I happened to finish my homework program but today during lecture my good ol professor told us we are not allowed to use STL as in vectors or list to create our database. We were also told we need all our variables private. I was doing this…

user2816227
- 173
- 2
- 13
1
vote
1 answer
App Engine query, using where on a Collection
I am developing an application using the App Engine datastore and, since Many To Many relationships are not supported I thought to use other features of the database to help myself in writing the application.
I am, in fact, storing a list containing…

Luca
- 1,116
- 2
- 15
- 24
1
vote
1 answer
Get running sum using MDX based at the only first attributes change in the set
I have the following data structure
age range sex population_segment
1 0-4 1 100
2 0-4 1 100
3 0-4 1 100
4 0-4 1 100
5 5-9 1 150
6 5-9 1 …

user2631992
- 43
- 2
- 7
1
vote
1 answer
Allowing custom class member values of a user control to be set on a page
I may have worded the title wrongly here. But what I have is the following user control class:
public class CustomControl : UserControlBase
{
public String MyString { get; set; }
}
When I include an instance of this user control on my…
user1017882
1
vote
4 answers
Access identically named class members of instances of different classes
I have instances of class A and B, and both classes implement a member 'Text'. Is there a way to access member Text in a generic way?
I'm hoping for something analogous to the javascript way of simply saying:
instance['Text'] = value;
Note: these…

Protector one
- 6,926
- 5
- 62
- 86
1
vote
1 answer
R extracting members of lists and sub-lists (S4 class)
I am struggling with extracting members from lists. The code shown below produces a list of 5 members with each member having a (sub)list of two members.
I would like to extract the first members of each sub-list i.e (W1 and V1). How do I do…

user2633313
- 119
- 8
1
vote
3 answers
C++ Accessing Public Members of Class with a Variable
I need to call a member of a defined (public) class through a local variable, and I am wondering how I can do so. My problem is that which variable to call in the class is dependent upon a series of values, so I really need to use a variable to…

brentf
- 411
- 2
- 8
- 14
1
vote
1 answer
Is there a way of adding exclusions to Eclipse's "Sort all members"?
In general I like the "Sort all members" feature in Eclipse and have it turned on for the Save Actions.
However, occasionally I'd like to stop it for individual sections, e.g. enumerations. Is there a way of doing this?
Am aware of the "Ignore…

Steve Chambers
- 37,270
- 24
- 156
- 208
1
vote
1 answer
array struct with pointer accessing members sequentially
I am still learning about pointers and structs, but I hoping someone might know if it is possible to access individual members sequentially by use of a pointer?
Typedef record_data {
float a;
float b;
float c;
…

user1879874
- 11
- 1
1
vote
4 answers
Passing structures and structure members to functions
When passing structures to functions what would the prototype / header look like? What would they look like when passing members of structures to functions?
For example...
struct a_struct{
int a;
int b;
};
a_struct point;
void f1(a_struct)
void…

user1768079
- 683
- 3
- 10
- 18
1
vote
1 answer
Id like the landing page for my Wordpress website display only basic info, request more info form and login for members.
I am building a website for members-only, where they can see new posts, follow updates etc. All the members will be provided with login info by me. I'd like to create a landing page that will only display description of the site, request more info…

user1861555
- 11
- 1
1
vote
0 answers
Struts 2 - accessing static member value. Seems to ignore 'struts.ognl.allowStaticMethodAccess' value in struts.properties and struts.xml file
I'm trying to access a static member value in JSP as follows:
"@package.subPackage.ClassName@STATIC_MEMBER"
STATIC_MEMBER is declared as public static final String with a value assigned and class has public scope. My struts.properties (placed under…

lupchiazoem
- 8,026
- 6
- 36
- 42