Returning string is not successful

C-sharper

I have a problem which may look easy but I can't solve it.
I have a function which returns a string and has two arguments:

public string MyFunc(string ID, string TargetID)   // ID is 9999999995 and TargetID is 9999999998
{
    return ID + TargetID;    // Gives me ID only(9999999995).
}

When I try to put text instead of the ID, it works, but not with a number. I've tried to use StringBuilder but I get the same result.

I use it like this:

MessageBox.Show(MyFunc(Settings.Default.ID, ComboBox1.Text));
C-sharper

Thank you everybody, but the problem was in receiving the string from netStream, That was my fault. When sending the string I haven't added the "$" char in the end and so the string maybe was so long or something...

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Function returning pointer to string

분류에서Dev

NSArray Returning String Instead of Dictionary

분류에서Dev

Returning string from BlackBerry java application

분류에서Dev

Ruby String variable returning true for .is_a?(Array)

분류에서Dev

Bad formatted expr returning empty string in Tcl

분류에서Dev

Returning array in Javascript function after splitting string

분류에서Dev

Why is my Swift string variable returning nil?

분류에서Dev

$_POST is returning just 'Array' as string and i am posting an Array

분류에서Dev

TCL library returning a string from c++ function

분류에서Dev

Returning 'Range' instead of actual string in Google Apps Script

분류에서Dev

Google gson.toJson(List) returning response as string instead of array

분류에서Dev

Combobox SelectedValue Returning System.Data.DataRowView even Converted to String

분류에서Dev

_grokparsefailure on successful match

분류에서Dev

I am trying to use a class to hold a string value but it is not returning the value I inputted

분류에서Dev

HTTP Request from Dockerfile not successful

분류에서Dev

How to check if cvxpy's solve() is successful?

분류에서Dev

When is it safe to assume file uploads are successful?

분류에서Dev

ftp mget does not show successful completion

분류에서Dev

Django run code once on every successful login

분류에서Dev

SQLite: difference between successful and failed query?

분류에서Dev

Apache camel ftp component - notification on successful transfer

분류에서Dev

Anonymous user persists in database after successful log in

분류에서Dev

Load a page after successful Google Login

분류에서Dev

The changes you requested to the table were not successful

분류에서Dev

Is it safe to use a disk after a successful fsck?

분류에서Dev

Ubuntu Screen rotation of 90° after successful login

분류에서Dev

PHP function not returning value

분류에서Dev

PHP Model not returning result

분류에서Dev

Regex - returning overlapping matches

Related 관련 기사

  1. 1

    Function returning pointer to string

  2. 2

    NSArray Returning String Instead of Dictionary

  3. 3

    Returning string from BlackBerry java application

  4. 4

    Ruby String variable returning true for .is_a?(Array)

  5. 5

    Bad formatted expr returning empty string in Tcl

  6. 6

    Returning array in Javascript function after splitting string

  7. 7

    Why is my Swift string variable returning nil?

  8. 8

    $_POST is returning just 'Array' as string and i am posting an Array

  9. 9

    TCL library returning a string from c++ function

  10. 10

    Returning 'Range' instead of actual string in Google Apps Script

  11. 11

    Google gson.toJson(List) returning response as string instead of array

  12. 12

    Combobox SelectedValue Returning System.Data.DataRowView even Converted to String

  13. 13

    _grokparsefailure on successful match

  14. 14

    I am trying to use a class to hold a string value but it is not returning the value I inputted

  15. 15

    HTTP Request from Dockerfile not successful

  16. 16

    How to check if cvxpy's solve() is successful?

  17. 17

    When is it safe to assume file uploads are successful?

  18. 18

    ftp mget does not show successful completion

  19. 19

    Django run code once on every successful login

  20. 20

    SQLite: difference between successful and failed query?

  21. 21

    Apache camel ftp component - notification on successful transfer

  22. 22

    Anonymous user persists in database after successful log in

  23. 23

    Load a page after successful Google Login

  24. 24

    The changes you requested to the table were not successful

  25. 25

    Is it safe to use a disk after a successful fsck?

  26. 26

    Ubuntu Screen rotation of 90° after successful login

  27. 27

    PHP function not returning value

  28. 28

    PHP Model not returning result

  29. 29

    Regex - returning overlapping matches

뜨겁다태그

보관