com-port - nfcomm (??Att. Dalius Brokevicius??)

Anonymous
Guest Posts: 137
i'm ok with with changing ComPort parameters in W2K.
but i'd like to change them in the code like this:
com.LoadParam();
com.DataBits:=5; //or com.DataBits(5);
com.baudrate:=9600;
com.SaveParam();
But when i call com.ShowParam()
DataBits or BaudRate field is empty.
Is there any possibility to change them directly from a code.
but i'd like to change them in the code like this:
com.LoadParam();
com.DataBits:=5; //or com.DataBits(5);
com.baudrate:=9600;
com.SaveParam();
But when i call com.ShowParam()
DataBits or BaudRate field is empty.
Is there any possibility to change them directly from a code.
0
Comments
-
Seting parameters from code:
LoadParam() - you don't need this, becouse it loads all settings from registry;
You must use this values for:
Baud rate:
0:110;
1:300;
2:600;
3:1200;
4:2400;
5:4800;
6:9600;
7:19200;
8:38400;
9:57600;
10:115200;
Data bits:
0:4;
1:5;
2:6;
3:7;
4:8;
Com port (ComX):
0:com1;
1:com2;
2:com3;
3:com4;
Parity:
0:None;
1:Odd;
2:Even;
3:Mark;
4:Space;
Stop bits:
0:1;
1:1.5;
2:2;
So 9600,8,n,1 are:
BaudRate:=6;
DataBits:=4;
Parity:=0;
StopBits:=0;
Setup is complete, you can it store to registry
SaveParam();
Then you will run communication to loa these settings use only LoadParam()
Dalius0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions