|
Is it not something to do with the value returned being the next available number for a new record.
For example if you add a second record to the table (which would take 105) does the 2nd form now return 110?
|
|
|
|
|
I have double checked that whenever I add a new record into dataset gives the correct values as record number (primary key). However, the combobox which I bind to this table doesn't give the right correct values (VALUEMEMBER) when it gets populated from the table.
Second row returns 110 which actually must return 105.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
My exe is not working in other systems pls suggest me
what i have to do for that
|
|
|
|
|
Have you got the correct Runtime installed on the other machines? the most likely problem.
|
|
|
|
|
You're going to have to explain what you mean by "not working". Got any error messages or the circumstances under which it does and does not work?? How about what is supposed to happen and what actually happens??
|
|
|
|
|
Do not give your exe to other systems.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
And the systems will surprised
Thanks
Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
The following code have a runtime error.
Class Test Dim A, B, C as Byte, Sub Main() A=200 B=100 C=A+B Console.WriteLine ( C ) End sub End Clas
Can u tell me why?
modified on Friday, December 25, 2009 8:58 AM
|
|
|
|
|
Hi,
cotdot11111 wrote: What is the output of the messagebox function
Nice one, there isn't a MessageBox around.
in order to determine what a "program" does, you could:
1. read its code and figure it out;
2. actually run it.
[edited after your edit]
cotdot11111 wrote: have a runtime error
what error?
if you want a specific answer, you'd better provide detailed information.
BTW: do you know what "overflow" means? if not, look it up, try Google.
[/edited after your edit]
modified on Friday, December 25, 2009 9:12 AM
|
|
|
|
|
what is the runtime error number/description?
Have you tried to step through the code in debug mode to determine where the exception is triggered.
|
|
|
|
|
A, B and C are all Byte
200+100 > Byte max resulting in an overflow.
|
|
|
|
|
Yeah thank you very much
|
|
|
|
|
dear all
how could i save a form as image type in runtime..in vb6? thanks a lot
|
|
|
|
|
|
thanks a lot, actually i read it and tested already, when save form as image, the picturebox lost..and some information lost too...any other idea, thanks a lot
|
|
|
|
|
Sorry don't have VB6 to hand so can't have a look or try anything.
Your best bet for more ideas is google!
|
|
|
|
|
thanks your reply, i searched in google, but couldn't get any suitable answer, so come here to see you.
|
|
|
|
|
Respected,
How to convert Integer value into Indian Rupees Formate in VB.Net
E.g 1234567 convert into 12,34,567
Thanks
|
|
|
|
|
There are numerous Format functions available look up the docs, particularlay the formatcurrency method
Cheers,
dave
|
|
|
|
|
Here's the answer in C#:
CultureInfo ci = CultureInfo.CreateSpecificCulture("hi-IN");
string converted = 1234567m.ToString("N", ci);
Or in VB.NET:
Dim ci As CultureInfo = CultureInfo.CreateSpecificCulture("hi-IN")
Dim converted As String = 1234567D.ToString("N", ci)
See my article about Windows 7 Timer here on CodeProject
|
|
|
|
|
hi..
I am a beginner in Vb.net. need help. i m doing 1 project in which i have to retrieve field from table 1 to Combo Box & save it to table 2.
can anybody give me example.
|
|
|
|
|
Are your tables you refer to in a dataset?
If so then you can bind the datasource/member properties of the combo box to the table 1.
Then just use an insert/update to table 2 based on the selecteditem in the combobox.
|
|
|
|
|
Dim TCP As Net.Sockets.TcpClient
Dim POP3Stream As System.IO.Stream
Dim inStream As System.IO.StreamReader
TCP = New Net.Sockets.TcpClient
TCP.Connect(strServer, 110)
POP3Stream = TCP.GetStream
inStream = New System.IO.StreamReader(POP3Stream, System.Text.Encoding.GetEncoding("utf-8"))
strTemp = inStream.ReadLine
While (strTemp <> ".")
strEmailMess = strEmailMess & strTemp & vbCrLf
strTemp = inStream.ReadLine
End While
For example: if strTemp is =?windows-874?B?t7TKzbogdGVzdCB=?=
i have to cut ?windows-874?B? and ?= so, it will remains t7TKzbogdGVzdCB=
and i will use code below to encode it to Thai letter
Dim encoding As New System.Text.UTF8Encoding
Dim Buffer As Byte() = Convert.FromBase64String(t7TKzbogdGVzdCB=)
DecodeBase64 = encoding.GetString(Buffer)
it's read ?????????
How to make it read in Thai letter ?
Thanks
modified on Friday, December 25, 2009 4:43 AM
|
|
|
|
|
Your question is not very good.
You cut the items from where? what are you expecting it to decode to? what does the original data refer to?
You lost me with your question...
|
|
|
|
|
sorry , I have revised my post already and hope u understand what i mean.
Thanks
|
|
|
|