|
hi how are u guys, im a begining in the world of the programmation and i like to know how to sum two columns in a truedbgrid, i have one column charge with data from a dataset, then i write the data in the second column, finish the result appear in a third columns that contains data from the same dataset
|
|
|
|
|
What's a "true dbgrid"?
Outside of that, it'd be more efficient to do that when building the dataset; have the database-server determine the sums for the third column.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Before I make this request, I would like to express my profound gratitude to the codeproject bodies, whom with thier aids, I can be proud to call myself upcoming programmer. Once again, thank you all for sources codes, advice etc.
I would like to get my hands sweat by writing advance applications. I saw a software that can read out security code of mobile phones connected to the PC via USB cable, and will display security code on a label. I was doubting the application and I tried it with my own phone and it was my private security code it reads out. So, am wondering how I can write such application using vb6.0 or vb.net. I tried google but no match and am not even sure of the right keywords to use. Any advice, source code, guideline is welcome. Thanks!!!
|
|
|
|
|
The issue is not really about programming, but about mobile phones. What you need to research is sites that explain the internal workings of mobile phones and how you can read from them via the USB interface.
|
|
|
|
|
With VS 2008 VB.Net; I need to create a label (Avery 8161, 1" x 4") that is very involved. 1st line is 12pt, 2nd line 16pt, 3rd line is 14pt, 4th line is 11pt followed by 12pt on the same line. There is a rotated text box that is 20pt and to top it off, there is an area that has filled in shapes (rectangle with 1pt black border and two filled triangles inside that border. I've got the table and can place text but cannot change the font except entire table wide. I haven't found any guidance in doing this in the word tables. Of course, this is the format for all 20 labels on the page. (Don't see any way I can include a picture of the label)
Louis James
|
|
|
|
|
How do I set up connection string for Microsoft OLE DB Provider for DB2?
Dim connection As ??????
|
|
|
|
|
|
|
See: http://www.connectionstrings.com/ibm-db2/[^]
Dim connection As New System.Data.OleDb.OleDbConnection("Provider=DB2OLEDB;...")
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi
I need to serialize a php named array in vb.net 2010 (Desktop app). I believe that the only easy way might be with jquery.
How do you implement a jquery function in vb.net 2010?
If there is an easier way to covert the php named array string to a .net supported object i.e. array, dictionary or collection, etc. PLEASE LET ME KNOW.
|
|
|
|
|
QuickBooksDev wrote: How do you implement a jquery function in vb.net 2010?
With extreme difficulty.
Deserialize it from what format? JSON? XML? What?
|
|
|
|
|
from a php named array string which looks like this:
a:2:{s:3:"foo";s:3:"bar";s:3:"bar";s:3:"foo";}
Is there a good way of handling this?
|
|
|
|
|
That appears to be JSON, but looks malformed.
You can try the stuff found in these[^].
|
|
|
|
|
I am not sure if it is JSON. It is coming from a blob field in a database.
What I sent was only an example of a php named array which is what I think it is.
Here is the actual text that was sent to me (some text has been changed). It comes from the HikaShop shipping_parms field in the shipping table.
o:8:"stdClass":36:{s:19:"shipping_percentage";s:1:"0";s:20:"shipping_per_product";s:1:"0";s:26:"shipping_price_per_product";s :"";s:25:"shipping_override_address";s:1:"0";s:30:"shipping_override_address_text";s :"";s:11:"access_code";s:17:" 8CDDA11596V5822B1";s:7:"user_id";s:10:"test012345";s:8:"password";s:8:"Aec3fX13";s:14:"shipper_number";s:6:"1X2167";s:11:"pickup_type";s:2:"01";s:16:"destination_type";s:4:"auto";s:15:"negotiated_rate";s:1:"0";s:13:"group_package";s:1:"1";s:13:"include_price";s:1:"1";s:18:"exclude_dimensions";s:1:"0";s:20:"weight_approximation";s:1:"5";s:17:"dim_approximation";s :"";s:25:"shipping_warehouse_filter";s :"";s:18:"shipping_min_price";s:1:"0";s:18:"shipping_max_price";s:1:"0";s:25:"shipping_virtual_included";s:1:"1";s:22:"shipping_price_use_tax";s:1:"1";s:21:"shipping_min_quantity";s :"";s:21:"shipping_max_quantity";s :"";s:19:"shipping_min_weight";s:1:"0";s:20:"shipping_weight_unit";s:1:"g";s:19:"shipping_max_weight";s:1:"0";s:19:"shipping_min_volume";s:1:"0";s:18:"shipping_size_unit";s:2:"in";s:19:"shipping_max_volume";s:1:"0";s:19:"shipping_zip_prefix";s :"";s:16:"shipping_min_zip";s :"";s:16:"shipping_max_zip";s :"";s:19:"shipping_zip_suffix";s :"";s:11:"methodsList";s:132:"a:4:{s:16:"ups_next_day_air";s:2:"01";s:18:"ups_second_day_air";s:2:"02";s:10:"ups_ground";s:2:"03";s:14:"ups_express_ca";s:2:"01";}";s:14:"warehousesList";s:275:"a:1:{i ;O:8:"stdClass":8:{s:4:"name";s:7:"Vermont";s:3:"zip";s:5:"41234";s:4:"city";s:6:"Putney";s:7:"country";s:3:"223";s:4:"zone";s:36:"country_United_States_of_America_223";s:9:"zone_name";s:28:"223 United States of America";s:5:"units";s:2:"lb";s:8:"currency";s:1:"2";}}";}
|
|
|
|
|
OK, after looking at that bigger example, that's not JSON.
I don't know of a library that handles serialization of PHP objects.
But, there is this[^]. You can create a PHP project in your solution that handles serialization and deserialization, creating the objects for you.
You can NOT just use an external PHP app because the objects that it creates will not be visible to your .NET code.
|
|
|
|
|
The web doc for Phalanger seems a bit complex.
What I need is
SomeVar = ToClass.ToFunction(BlobString)
Plalanger goes into web pages, complex class functions and cannot see how. Perhaps the simple calculates factorial example technique with
php
Function ToFunction($str)
{
$ar = unserialize($str);
return serialize($array);
}
VB
Dim Ojb as object = ToClass.ToFunction(MyBlobString)
would work???
|
|
|
|
|
You can't do that. At. All.
You cannot combine two different languages in the same code file. You can't even use two different languages in the same Project!
The PHP and Managed code execute in completely separate execution environments that don't even know about each other. So, the objects you create in one are not visible in the other.
Your only nice solution is to create a seperate PHP project (essentially PHP.NET) that handles serialization and reference it in the VB.NET code.
|
|
|
|
|
If separate programs are created then I am back to a php program creating a file that VB.Net needs to read and Deserialize into some table. So what good is that except possible to make the external interface file being more 'friendly' i.e. Key,Value instead of all the types, length, etc. And this may not work for embedded structions which I believe this blob has.
Since each record that I read would need to do the same thing it doesn't even seem to be very practical.
|
|
|
|
|
QuickBooksDev wrote: If separate programs are created
A seperate project in the same solution is compiled to a library .DLL, not a seperate .EXE.
It's not different than if you added a C# Class Library project to your Solution.
|
|
|
|
|
This might help:
Sharp Serialization Library serializes and deserializes primitives, ArrayLists and Hashtables, compatible with PHP serialize().
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Sharp Serialization Library did not work.
Failed in their test project on
Hashtable htFile = (Hashtable)this.serializer.Deserialize(stSerial);
Unable to cast object of type 'System.String' to type 'System.Collections.Hashtable'.
I just clicked on open. Browsed to my file with the data and that was it.
|
|
|
|
|
In a vb.net 2010 application, I am going to add a interface for a user to be able to do the following:
1. See what users are assigned to 5 specific active directory groups, and
2. allow the user to update the active directory groups.
Thus can you show me and/or point me to a url that shows me example code on how to accomplish this goal?
In an existing vb.net 2010 web form application, I am going to add an web interface for a user to be able to do the following:
1. See what users are assigned to 5 specific active directory groups, and
2. allow the user to update the active directory groups.
Thus can you show me and/or point me to a url that shows me example code on how to allow users to set the active directory groups and to update the active directory groups?
|
|
|
|
|
|
I have a problem in creating a VBA to perform a certain task. I have a data in excel which has exactly 20 rows and 1500 columns, in which 1st row of each column is the filename of a text file which has to be created in notepad. How can I copy from A2 to A20 from the first row in excel and open and paste it in a notepad and name it as (A1 value) and close it. And then again copy the 2nd row from B2 to B20 and open and paste it in a notepad and name it as the (B1 value), so on and so forth for 1500 columns. How can I program this task other than manually copying from excel and pasting it in a particular notepad. Kindly guide me
|
|
|
|
|
So... what have you tried?
This is a relatively simple task in VBA.
If you provide the code you've written, others may assist.
But do not expect anyone to simply provide the code.
|
|
|
|