Home > database >  Questions about PB communications
Questions about PB communications

Time:09-27

//acceptance to each other after data
String datastr1
Or winsock_b winsock_b/* */. Object. Getdata (def datastr1)
Sle_2. Text=datastr1//will display data string in the text box



Why is the error? Undefined vairable: def

CodePudding user response:

Def?
Or ref?

Look not to understand,,,

CodePudding user response:

Ref should not write, reference and values passed a written in pb,

CodePudding user response:

Best to your datastr1 initialization before use space, use space method,

CodePudding user response:

reference yingmu reply: 3/f
in use before you give your best datastr1 initialization space, use space method,



Look not to understand, just contact

CodePudding user response:

The
refer to the original poster supergirl111 response:
//acceptance to each other after data
String datastr1
Or winsock_b winsock_b/* */. Object. Getdata (def datastr1)
Sle_2. Text=datastr1//will display data string in the text box



Why is the error? Undefined vairable: def


String datastr1
Datastr1=space (60)//the 60 change yourself, to be able to let you receive a maximum of data
Winsock_b. Object. Getdata (datastr1)
Sle_2. Text=datastr1

CodePudding user response:

reference 5 floor xiaobn_cn reply:
refer to the original poster supergirl111 response:
//acceptance to each other after data
String datastr1
Or winsock_b winsock_b/* */. Object. Getdata (def datastr1)
Sle_2. Text=datastr1//will display data string in the text box



Why is the error? Undefined vairable: def


String datas...

Well, first datastr1=space (60), give your datastr1 initialization space, used to store the received data
Def should need not add

CodePudding user response:

Thank you oh

CodePudding user response:

To study the

CodePudding user response:

Is it should not be DEF, REF?
  • Related