|
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
|
|
|
|
|
I'm not clear what your asking.
'Assumes ID is an integer and name is a string
Function FindByItemCode(ByVal item As EntityFlow.Ey_ps_giftvoucher, _
ByVal vID as Integer, _
ByVal vName as String) As Boolean
If item.Psgv_item_code = (TextBox1.Text.Trim & "*") Then
End If
End Function
Is that what your looking for?
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
I
In find function iam passing entity item and -(ByVal item As EntityFlow.Ey_ps_giftvoucher)
Function FindBytest(ByVal item As EntityFlow.Ey_ps_giftvoucher) As Boolean
If item.Ps_item_code Like (TextBox1.Text.Trim & "*") Then
End Function
I want to pass any no of entity parameters to get the result for ex i can pass id and name or Id and date of the entity to find the result or id ,Name and Date of the entity
how to write the function
can any you suggest me
|
|
|
|
|
hi flocks,
Is there any way we can find out the total and free memory slots on mother board, types of memory ( DDR-I, DDR-II) and its size.
|
|
|
|
|
WTF?
dim i, j, k, l as integer
i = my.computer.Ram.TotalSlots
j = my.computer.Ram.FreeSlots
k = my.computer.Ram.CurrentAvail
l = my.computer.Ram.TotalAvailIfSlotsUsed
dim Type as string = my.computer.Ram.Name
dim MHZ as integer = my.computer.Ram.Speed
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|