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 ...
Hi,
How do I programatically read a custom page field from within a webpart (from the page the webpart is on)?
Thanks
Jon
...
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...
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 ...
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...
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 ...
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...
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...
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...
Is there a way to get the size of a dynamic text box at run time?
...
Any ideas how to stop browsers from forcing focused form fields into view when positioned overflow hidden?
...
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...
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' ...
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...
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?
...
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...
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
...
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 (...
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...
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
...