|
Reading through this serious of intriguing posts of rather over the top difficult questions
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Code for a program that determines if a number is a palindrome or not
|
|
|
|
|
Sorry, but were not writing your code for you. Show that you've put in some effort in trying to do your own homework and we'll help. But, until then, you're wasting time...
|
|
|
|
|
Code for a program that determines if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available:
• Account Number
• Balance at the beginning of the month
• Total of all items charged by this customer this month
• Total of all credits applied to this customer’s account this month
• Allowed credit limit
The program should input as integer each of these facts, calculate the new balance (equals beginning balance + charges – credits), display the new balance and determine if the new balance exceeds the customer’s credit limit. For those customers whose credit limit is exceeded, the program should display the message, “Credit Limit Exceeded.”
|
|
|
|
|
Sorry, but were not writing your code for you. Show that you've put in some effort in trying to do your own homework and we'll help. But, until then, you're wasting time...
|
|
|
|
|
Code for program a that inputs one number consisting of five digits from the user separates the number into its individual digits and prints the digits separated from one another by three spaces each. Example, if the user types 42339, the program should print 4 2 3 3 9.
|
|
|
|
|
Show me your attempt and we can help you fix it. If you don't make the attempt then you won't learn... And I hate interviewing graduates that haven't got a clue! It really is depressing.
|
|
|
|
|
Sorry, but were not writing your code for you. Show that you've put in some effort in trying to do your own homework and we'll help. But, until then, you're wasting time...
|
|
|
|
|
If you can't figure this out, you should get a different degree!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Hi all
How can a VB6 application connects to a tcp server with a certain port number?
T.I.A
|
|
|
|
|
Search for some Winsock client examples.
|
|
|
|
|
|
Hi all. I tried to create structure of PDF file using StreamWriter but I have no results.
|
|
|
|
|
You have to look into third party components to create PDF files in VB
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
That is a shame, but thanks for sharing that with us
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Yeah, that sucks. That would be a nice built in feature.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
I am writing a vb.net program that simply returns the running-config of a given cisco device.
When doing this via the command prompt, hitting the space bar returns the name page of data. My problem is telling the cisco to give me the next page of data using my telnet class. No matter what size I make my return buffer, it doesn't matter. The return text is still broken into "pages". If i send a space (0x20) char, the cisco doesn't see it as the same thing and breaks the text. I've also tried CR, LF, and CR&LF.
Anyone know what I am talking about?
|
|
|
|
|
I have no idea what you need to do to get around this, but I have a more reliable method. Implement a TFTP server in your code, then just tell the router to save the running-config to your server. Whalla, and no screwing around with "next page" spacebars.
|
|
|
|
|
Hi,
I have created a .Net dll (c#) and made it com visible to access from vb6.0. There is a method in dll that returns custom object on successful execution. The custom object has a property of type string array. Can any one tell or give me sample code to read the values in the property array from vb code. Thanks in advance..
|
|
|
|
|
Assuming you have access to the VB6 application, do what I do.
Run the application in debug and, when the object is returned, examine it using 'watch.
From there, you should be able to determine the structure.
Tim
|
|
|
|
|
Thank you very much Tim, it solved my problem
|
|
|
|
|
After the day I had yesterday, knowing SOMETHING worked is a good feeling...
|
|
|
|
|
Hello Tim,
I am facing another problem. On a method call .net dll returns a custom object that has a property called Item which is an array of another custom object Item. I am getting type missmatch error when I try to assign it to a array of Item. Could you tell me where I am doing a mistake?
Below is the code that i am using (I have written a comment where error is):
Private Sub btnRecall_Click()
Dim printSaleReceipt As POSInterfaceDLL.Receipt
If txtReceiptId.text <> "" Then
Set printSaleReceipt = New POSInterfaceDLL.Receipt
Set printSaleReceipt = POS.GetSaleReceipt(txtReceiptId, Customer)
Dim list() As POSInterfaceDLL.Item
With printSaleReceipt
If .receiptId <> "" Then
Dim text As String
text = "Customer Name: " & .CustomerName & " - " & _
.AccountID & vbCrLf
list = .Items 'Error is here
For i = 0 To UBound(list) Step 1
text = text & list(i).Name & " - " & list(i).Quantity & " - " & _
list(i).UnitPrice & vbCrLf
Next
text = text & "Total Tax: " & .TaxAmount & vbCrLf
text = text & "Total Amount: " & .TotalAmount
txtReceipt.text = text
End If
End With
btnRecall.Enabled = False
btnRefund.Enabled = True
Else
MsgBox ("Please enter receipt id")
End If
End Sub
I could see the values from Watch...
Thank you,
Rakesh
|
|
|
|
|
Iam using generic functions in my project,
EntityFlow.Ey_ps_giftvoucher is a entity collection
Dim NewProducts As List(Of EntityFlow.Ey_ps_giftvoucher) = List.FindAll(AddressOf SearchForDate)
I use the function to find the particular code like passing only one parameter
Function FindByItemCode(ByVal item As EntityFlow.Ey_ps_giftvoucher) As Boolean
If item.Psgv_item_code = (TextBox1.Text.Trim & "*") Then
End If
End Function
I need to find the values by passing more than one parameter for example(id and name)
Pls anyone give the right solution to solve this problem
|
|
|
|