field

Getting the size of an indiviual field from a c++ struct field

The short version is: How do I learn the size (in bits) of an individual field of a c++ field? To clarify, an example of the field I am talking about: struct Test { unsigned field1 : 4; // takes up 4 bits unsigned field2 : 8; // 8 bits unsigned field3 : 1; // 1 bit unsigned field4 : 3; // 3 bits unsigned field5 ...

Sharepoint 2007 - read custom page field from webpart

Hi, How do I programatically read a custom page field from within a webpart (from the page the webpart is on)? Thanks Jon ...

In Java, is it ever a bad idea to make an object's members publicly available?

I have a data class in my application. My application will never be used as a public API and I will be the only person developing code within my project. I am trying to save every ounce of processor and memory power I can. Is it a bad idea to make my data members in my data class to have public/protected/default protection so that...

Default size for database fields

What the size that you use for common database fields, like firstName, lastName, Email, password, etc? I see these common fields in a lot of databases of blogs, forums, e-commerces, etc. But I don't know if there is some reference or default for the size for that common fields. So, I want to know what the method/reference/basis that you ...

Best way to handle multiple constructors in Java

Hey, I've been wondering what the best (i.e. cleanest/safest/most efficient) way of handling multiple constructors in Java is? Especially when in one or more constructors not all fields are specified: public class Book { private String title; private String isbn; public Book() { //nothing specified! } p...

Coldfusion Verity search is getting confused by & in an collected field to be searched + located.

I tried looking for an example of getting around this but had no luck. Hopefully someone can point me in the right direction! I have a Verity Collection. The description field of a record has a title, such as "Flowers & Candy Scented Candle" When I type "Flowers & Candy" into a search, it returns no results. If I type in just the ...

Is this a bug with SharePoint Column/Field internal names in MOSS 2007

There seems to be a bug with columns in SharePoint MOSS 2007. It allows you to add a new column say 'Team'. When you add this it stores the internal name as 'Team' which makes sense. The business then decide that 'Team' should be called 'Workstream', so you rename it as requested. The internal name remains 'Team' for this column in the...

Storing SQL field names and general SQL usage with Delphi

I'm starting to write my first Delphi application that connects to an SQL database (MySQL) using the ADO database components. I wondered whether there was any best way of storing the names of the fields in the database for easy reference when creating SQL queries later on. First of all I made them a simple constant e.g. c_UserTable_Us...

Java castor using custom field handlers

Hey, I have been trying to write a custom field handler which returns the hash code of a java.awt.Image object when writing to XML and retrieves an image based on this hash code when binding the XML to an object. For some reason, I can't get this to work; castor, from what I can tell, simply instantiates the field handler and then does...

Text box size in Flash

Is there a way to get the size of a dynamic text box at run time? ...

Stop browser forcing form element into window view.

Any ideas how to stop browsers from forcing focused form fields into view when positioned overflow hidden? ...

Changing DBF field size

Hi there, I worked with ESRI shapefile format right now and i have some problem with changing/editing database field size. I created a field with 200 length/size and now i want it to only 80 length/size (space & other improvement). However i can't edit field size anymore :( can somebody point out how to change the field size? Btw i ha...

Use reflection to set the value of a field in a struct which is part of an array of structs

At the moment my code successfully sets the value of fields/properties/arrays of an object using reflection given a path to the field/property from the root object. e.g. //MyObject.MySubProperty.MyProperty SetValue('MySubProperty/MyProperty', 'new value', MyObject); The above example would set 'MyProperty' property of the 'MyObject' ...

Use XSLT Variable as Field Name

Hi .... I have an XSLT variable that I'm creating and populating with the value of an attribute at the top of the style sheet like so ... <xsl:variable name="MyAttributeValue" select="/Source/Fields/Field[@SpecialAttribute]/@MyAttributeValue" /> Later on in the processing, I want to use $MyAttributeValue as a field name just lik...

Flex 3 sorting object fields

i have an object in actionScript3 code which i need to sort, i iterate through the object and print out each value for (var i:String in columnData) { however i need the data im iterating to be sorted aplhabetically. any suggestions on how to do this? ...

Theory of storing a number and text in same SQL field

I have a three tables Results: TestID TestCode Value Tests: TestID TestType SysCodeID SystemCodes SysCodeID ParentSysCodeID Description The question I have is for when the user is entering data into the results table. The formatting code when the row gets the focus changes the value field to a dropdown combobox if the testCode is of...

Browsable picture field in wss3.0

Hello all, I want to have Browsable picture field. any solution to have Browsable picture field in wss3.0?? I have found some links related but they are for MOSS 2007 any for wss3.0??? Need help Thanks ...

c# - How to iterate through classes fields and set properties

I am not sure if this is possible but I want to iterate through a class and set a field member property without referring to the field object explicitly: public class Employee { public Person _person = new Person(); public void DynamicallySetPersonProperty() { MemberInfo[] members = this.GetType().GetMembers(); foreach (...

Gridview Column Removing

Hi, I have a web application that I am working on(ASP.NET 2.0 C#). In it I have a GridView whose data source is an Oracle database. I get the data into the gridview in my codebehind, and don't set the datasource directly. I wanted to create a hyperlink field (NAME) that takes me to a details page about a specific record. What ends up...

MySQL query - unknown column

Hi, I'm trying to run a query, but I get an "unknown column 'MyField' in 'where clause'" error. This is my query: SELECT id, sum(lineValue * quantity) as TotalLine FROM myTable WHERE (TotalLine BETWEEN 10 and 500) group by id How can I perform a similar query? Thanks ...