|
The perlfunc entry for split says:
By default, empty leading fields are preserved
Hinting that there's a way to over-ride that default, but later on all it says is:
Empty leading fields are produced when there are positive-width matches at the beginning...
Started by Ambrose on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
The thing before to write it as a list assignment where I use a variable to soak up the initial empty field, just like on spaces but not give you leading....
That you care about the position of fields, so it preserves their position (i.e.
|
|
I'm wondering if it's worth the server time when updating a record to retrieve the existing record, loop through the fields checking for changes and only putting the changed fields in the update query? (I am using MySQL & PHP.)
The main reason for doing...
Started by Darryl Hein on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In the write/update method:
$s1 = ""; foreach ($this->record as $key =>... .
I only update the fields that have changed, it's part of the operation of my DbEntity class value of the updated fields and throw the appropriate error.
Insert.
|
|
The Admin and Agent portions of the Custom List Fields feature are done(lead loader is not complete yet) and ready for you to test in SVN/trunk.
look below for example screens.
To activate you need to enable custom fields in system settings, then
you ...
Started by mflorell on
, 40 posts
by 12 people.
Answer Snippets (Read the full thread at net):
In the screenshot the Contact ID field is actually the vendor_lead_code field better and better....
The MySQL field name as a field label in custom fields(this is explained in the help) and make sure you summary.
|
Ask your Facebook Friends
|
I have a LINQ object with an additional method added to it. The class has no disposable properties or methods, but FxCop is raising the error "Types that own disposable fields should be disposable" and referencing that class.
I've reduced the code this...
Started by AaronSieb on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Disposable fields....
Unfortunately in the closure.
The instance of the closure has a field to the datacontext which is causes the FxCop warning showed this to be an issue with an IDisposable field being lifted into a closure.
Context.
|
|
At the moment my code looks like this:
# Assign values for saving to the db $data = array( 'table_of_contents' => $_POST['table_of_contents'], 'length' => $_POST['length'] ); # Check for fields that may not be set if ( isset($_POST['lossless_copy...
Started by htxt on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Result) ) { $fields[] = $get->Field; } foreach($fields as $field) { if (isset($_POST[$field]) ) { $data[$field] = $_POST[$field]; } }
You could build an array of optional fields:
$optional ....
|
|
My web applications have pages that display many static fields.
I know that poor layout invariably leads to information overload and poor readability.
My Question:
Are there any best-practices or heuristics for laying out a screen that contains many static...
Started by Jim G. on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I think you pretty much answered your own question, especially the grouping of important fields.
|
|
When performing an insert lets say from C# into a SQL Server table (using parameterized sql statements), do you need to specify every table field in the insert statement?
I noticed that the fields that I do not specify in the insert default to the defaults...
Answer Snippets (Read the full thread at stackoverflow):
You do not have to specify all fields in the table!
As you noticed....
Those fieldsYou need to specify all those field for which you want to insert a value.
Should care what goes into them; it can lead to serious data problems to not care.
|
|
Hello,
Do you know if there's a quick way in sql server (via transact-sql) that I could trim all the database string fields.
Started by Víctor Rivero on
, 9 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
If anyone knows how to do this without.
String fields, not CHAR fields :)
That wouldn't do much good.
|
|
I have a contacts table which contains fields such as postcode , first name , last name , town , country , phone number etc, all of which are defined as VARCHAR(255) even though none of these fields will ever come close to having 255 characters. (If you...
Started by Olly on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
This can save some disk real-restate if you picked accurate sizes for fields....
If you use only CHAR fields, you can get fixed-length rows.
The indexable fields tend to have a limit on size.
That is not (like a text or CLOB field).
|
|
What naming convention should I follow for class members? Right now, I’m prefixing all fields with an underscore, and using the regular name for the accessor method, e.g.: int _age and int age() { return _age; }
Any preferred approaches?
Started by Jen on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
I prefer using:
_age for the fields
getAge and setAge for accessor methods.
Depends.
Taste.
|