FOUNDATION Fieldbus

cancel
Showing results for 
Search instead for 
Did you mean: 

Open Blocks with ordinal number with VB6

nifOpenBlock (nifDesc_t ud, NIFB_ORDINAL(n),
nifDesc_t *out_ud)
 
How can I create NIFB_ORDINAL macro or routine in VB6. I nedd to open the blocks using the ordinal number not the tag name.
0 Kudos
Message 1 of 6
(7,975 Views)
In VB6, there is no such routine as NIFB_ORDINAL(n) in VC.
We suggest you use tag name instead of number.
Feilian (Vince) Shen
0 Kudos
Message 2 of 6
(7,966 Views)
Opening the blocks with the tag name is not a option. What needs to be done to create NIFB_ORDINAL routine?
0 Kudos
Message 3 of 6
(7,962 Views)
I still need help with open blocks with the ordinal number with VB6.
 
Thanks
0 Kudos
Message 4 of 6
(7,942 Views)
Please refer to VC code, the macro NIFB_ORDINAL is defined from function makeIndex. You also can find this function in VB6.
Feilian (Vince) Shen
0 Kudos
Message 5 of 6
(7,931 Views)
Thanks for your help. I can now open the blocks with ordinal number and the tag name.
0 Kudos
Message 6 of 6
(7,926 Views)