Dart Home | C++ Professional Toolkit | Custom Development | Reply | C++ Professional Toolkit Topics | Forums |
Author | Forum: C++ Professional Toolkit Topic: How to send a BYTE in PowerBuilder |
jackyh jackyhou@163.com From: Zhengzhou, USA Posts: 11 Member Since: 09/19/02 |
posted September 19, 2002 4:00 AM I want to send some BYTE type data using TCP, but there are no such a type in PB, what should I do? |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted September 19, 2002 8:52 AM In Powerbuilder you need to use a string to send data, this is equivalent to char* variable. However, because of the way that Powerbuilder terminates strings (with a 0x00, null) you can't send zeros with our TCP control in PB, if that is what you would like to do. We don't know of a work around to solve this problem. |
jackyh jackyhou@163.com From: Zhengzhou, USA Posts: 11 Member Since: 09/19/02 |
posted September 19, 2002 10:54 AM I found the answer! You can define an ANY type variable to solve this problem. For example char lc[] any lnull lc[1]=char(0) lnull=lc x.object.send(lnull) |
Reply | C++ Professional Toolkit Topics | Forums |
This site is powered by
![]() |