473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

powerbuilder

I need help declaring this structure in VB.
Particularly the bit flags, like fOutxCtsFlow.


typedef struct _DCB {
DWORD DCBlength;
DWORD BaudRate;
DWORD fBinary:1;
DWORD fParity:1;
DWORD fOutxCtsFlow:1;
DWORD fOutxDsrFlow:1;
DWORD fDtrControl:2;
DWORD fDsrSensitivity:1;
DWORD fTXContinueOnXoff:1;
DWORD fOutX: 1;
DWORD fInX: 1;
DWORD fErrorChar:1;
DWORD fNull:1;
DWORD fRtsControl:2;
DWORD fAbortOnError:1;
DWORD fDummy2:17;
WORD wReserved;
WORD XonLim;
WORD XoffLim;
BYTE ByteSize;
BYTE Parity;
BYTE StopBits;
char XonChar;
char XoffChar;
char ErrorChar;
char EofChar;
char EvtChar;
WORD wReserved1;
} DCB;
Aug 31 '07 #1
2 1313
sicarie
4,677 Expert Mod 4TB
Then I'm going to go ahead and move you over to our 'Visual Basic Forum'.

(In the future, please make sure you post your question in the relevant forum. Thanks!)
Aug 31 '07 #2
QVeen72
1,445 Expert 1GB
Hi,

I think, what u r looking at is UDT(User Defined Type)
U can declare it like this, Always it has to be declared in the Declaration Section of the Code Module (Top of the Code/Form Level) Or in the Bas Module (at the top). Check this :

Expand|Select|Wrap|Line Numbers
  1. Public Type EmpDetails
  2.   FirstName As String
  3.   Addr1 As String
  4.   EID As Long
  5.   ESalary As Currency
  6. End Type
  7.  
Whenever, u want To Create a Variable of this Type, u can Dim it:

Dim MyEmp As EmpDetails

Assign the Value :
MyEmp.FirstName ="Veena"

U can also declare array of this UDT.

Sorry, if u were not looking for this...

Regards
Veena
Aug 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Fatt Shin | last post by:
Hi, I'm running MySQL 4.0.13, connecting from PowerBuilder 9 using ODCB Connector 3.51. I'm facing a problem where whenever I issue a SELECT COUNT(*) statement from PowerBuilder, I always get SQL...
3
by: Sanjay Minni | last post by:
We have mostly client-server apps with large scale database usages (Oracle / SybaseSQLAnywhere,...). Apps are delivered 1-to-1 specific client as well as some are sold as off the shelf. All have to...
3
by: Pino | last post by:
In our company we are developing new products (distributed applications) using .NET and SQL Server. However, there are some persons who continue to work with PowerBuilder and Sybase ASA (Adaptive...
0
by: Gerry | last post by:
Hi, I am not quite sure where to place this question, by Powerbuilder or MySQL as I guess it is a communication glitch between the two platforms. I am trying to convert a Powerbuilder...
9
by: Norm Goertzen | last post by:
I've posted a previous question about IDEs and got some good feedback, thanks, but it does seem that everyone has their own favourite IDE -- in other words, no IDE was repeatedly recommended. ...
2
by: Vakkaas | last post by:
Hi, I am trying to create a dll to use in PowerBuilder. My concern is that i want to create a few function in C# code that i want to use in PowerBuildre. Anybody knows how i can do this? ...
2
by: LC | last post by:
I am beginning to learn C#. net after being in Powerbuilder for over 10 years. For those C# gurus who know Powerbuilder I have a couple of questions: Does a datawindow relate to a datagrid or is...
2
by: agus liem | last post by:
Hai.. I introduce myself, my name : Agus, from Indonesia. Im develop application using POwerbuilder 7 and postgresql 7.3. I have serveral error, and cannot solve yet. Anybody help me? This is...
2
by: Subrata | last post by:
hi, We have a two tier client server application written with Powerbuilder as the front end. Going forward, we want to move the system to a ASP.NET based application. However, the first phase of...
5
by: =?Utf-8?B?Q2F0c0NyYWRsZQ==?= | last post by:
I have to prove .Net technologies over PowerBuilder of all things. Powerbuilder is OOP, has a .net interface with the DataWindow.net. Thats about all I know. It's a shootout between my group and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.