Questions tagged [members]
175 questions
0
votes
2 answers
Why would accessing this local member variable cause an exception?
I am trying to write a program that will read the contents of a .csv file into an array then print the results to the screen (part of a larger project) when the function getNumberOfRooms() is called an exception is thrown when it tries to return the…

Skutov
- 1
- 1
0
votes
3 answers
Using a static member variable
Hello in my class Bullet I declare active as false when the bullet isn't active and true when it is. In my other class that isn't connected to my Bullet class in any way I want to use the bool member active and change it, how can I do that?
Im…

Prolle
- 61
- 7
0
votes
1 answer
members of struct keeps printing when not called
I am now learning malloc and nested structs. I have one problem however. When I print out a member of a struct I also get other variables from another nested struct. The code below is what I have.
structs.h
struct course_info{
char *name[20];
int…

user2816227
- 173
- 2
- 13
0
votes
2 answers
JavaScript function members differences
I'm still confused about this part of the closure although I read about it a lot (also here in the site).
Took the code from here:
http://www.crockford.com/javascript/private.html
So what is the different between this:
function Container(param) {
…

FED
- 319
- 1
- 2
- 12
0
votes
0 answers
Access private static objects in public static method
I'm trying to make a global settings provider for an application. It seemed bulky to have one object duplicated in so many different classes.
I've seeth this method work when the private static variable was something simple, like an integer, but I…

Jacob
- 1,335
- 1
- 14
- 28
0
votes
1 answer
develop membership system to include different rolls
I have a basic membership system set up using MySQL database with 3 tables, user_id, user_name and user_password.
my php code bellow is simple as I am new to php and will develop it further as my knowledge progresses.
I am trying to create…

Beep
- 2,737
- 7
- 36
- 85
0
votes
1 answer
Different content for user level in WP
okay so I'm using the following code to show different content to users with different levels in WordPress

Techyoucation
- 21
- 5
0
votes
0 answers
Action script No such variable
I have a class where i have defined static members to be used as global variables within the App.
but during debugging when i try to see any class member value for that class
I got a message "No such variable: MyClassName"
and the members can't be…

user1675407
- 31
- 1
- 5
0
votes
2 answers
Write Kinect depth data to file at a good framerate
I'm extracting depth informations form a scene and I want to write X,Y,Z positions of points to a file.
using (DepthImageFrame depthFrame = e.OpenDepthImageFrame())
{
if (depthFrame != null)
{
…

Marco
- 1,454
- 1
- 16
- 30
0
votes
3 answers
mismatch in member variables in C# class
I am new to C#, and writing a piece of code to do some exercises. What surprises me is that I can use undefined member variables in a C# class as if they had been defined. Below is my code. In class Person, I only defined "myName" and "myAge," but I…

cy77
- 55
- 5
0
votes
2 answers
Returning Multiple Counts of Rows
Hard to capture the problem in a single sentence, but the problem is a simple one. Table looks like this:
col_a col_b
v1 c
v2 c
v3 c
v5 d
v2 d
v1 a
v5 a
v7 a
v4 a
Each row…

Kirk
- 1
0
votes
0 answers
timezone_menu returns PHP formatted timezone instead CodeIgniter formatting in ExpressionEngine
After upgrading ExpressionEngine from 2.5.2 to 2.6.1, the Member module now sets the member's localization to PHP format eg. 'Australia/Sydney' in the exp_members table. So, when my site calls EEs Localize class it returns the PHP format instead of…

sijpkes
- 168
- 10
0
votes
3 answers
Map functions of a class while declaring the functions
My previous question about this subject was answered and I got some tests working nice.
Map functions of a class
My question is now, if there is a way to while declaring the function, be able to register it in a map, like I realized in this question…

Jonathan
- 4,724
- 7
- 45
- 65
0
votes
1 answer
Privacy options with PHP/MySQL
I'm currently in the middle of developing a privacy options features which will allow members of my site to toggle whether their information is visible to friends only or to the public.
I'm doing this with PHP. When the privacy_opt variable is set…

James
- 576
- 2
- 8
- 20
0
votes
1 answer
BuddyPress "Order By" function doesn't work
I am using WP 3.5.1 and BP 1.7.2. The "Order by" function in my website :
http://teachersinvietnam.com/members/
isn't working. In Chrome I have the following message :
Uncaught TypeError: Cannot call method 'split' of undefined
…

Vincent Roye
- 2,751
- 7
- 33
- 53