WINSOCK BLANK DATA - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

WINSOCK BLANK DATA

scott84scott84 Posts: 6Member
Hi

i'm using the control OCX winsock in VBA, but when i receive data from the sub DataArrival, i always receive a blank string. If i try to use VB6, everything works as it should. I have to use VBA because i'm programming with IFIX and i can't switch to VB6. Anybody could help me please to fix this problem, or at least proposing an alternative to Winsock?

Davide

Comments

  • scott84scott84 Posts: 6Member
    Don't know if the following can be useful to someone able to help me....

    I've just realized that the problem is not DataArrival, but the sub GetData. I receive 32 bytes from DataArrival, but after that GetData set the data to empty string, as it is referred in the MSDN online documentation, even if i can't figure out why.

    The GetData method syntax has these parts:

    Part Description
    object An object expression that evaluates to an object in the Applies To list.

    data Where retrieved data will be stored after the method returns successfully. If there is not enough
    data available for requested type, data will be set to Empty.

    type Optional. Type of data to be retrieved, as shown in Settings.

    maxLen Optional. Specifies the desired size when receiving a byte array or a string. If this parameter is
    missing for byte array or string, all available data will be retrieved. If provided for data types
    other than byte array and string, this parameter is ignored.


  • scott84scott84 Posts: 6Member
    Don't know if the following can be useful to someone able to help me....

    I've just realized that the problem is not DataArrival, but the sub GetData. I receive 32 bytes from DataArrival, but after that GetData set the data to empty string, as it is referred in the MSDN online documentation, even if i can't figure out why.

    The GetData method syntax has these parts:

    Part Description
    object An object expression that evaluates to an object in the Applies To list.

    data Where retrieved data will be stored after the method returns successfully. If there is not enough
    data available for requested type, data will be set to Empty.

    type Optional. Type of data to be retrieved, as shown in Settings.

    maxLen Optional. Specifies the desired size when receiving a byte array or a string. If this parameter is
    missing for byte array or string, all available data will be retrieved. If provided for data types
    other than byte array and string, this parameter is ignored.


  • scott84scott84 Posts: 6Member
    Don't know if the following can be useful to someone able to help me....

    I've just realized that the problem is not DataArrival, but the sub GetData. I receive 32 bytes from DataArrival, but after that GetData set the data to empty string, as it is referred in the MSDN online documentation, even if i can't figure out why.

    The GetData method syntax has these parts:

    Part Description
    object An object expression that evaluates to an object in the Applies To list.

    data Where retrieved data will be stored after the method returns successfully. If there is not enough
    data available for requested type, data will be set to Empty.

    type Optional. Type of data to be retrieved, as shown in Settings.

    maxLen Optional. Specifies the desired size when receiving a byte array or a string. If this parameter is
    missing for byte array or string, all available data will be retrieved. If provided for data types
    other than byte array and string, this parameter is ignored.


  • scott84scott84 Posts: 6Member
    Don't know if the following can be useful to someone able to help me....

    I've just realized that the problem is not DataArrival, but the sub GetData. I receive 32 bytes from DataArrival, but after that GetData set the data to empty string, as it is referred in the MSDN online documentation, even if i can't figure out why.

    The GetData method syntax has these parts:

    Part Description
    object An object expression that evaluates to an object in the Applies To list.

    data Where retrieved data will be stored after the method returns successfully. If there is not enough
    data available for requested type, data will be set to Empty.

    type Optional. Type of data to be retrieved, as shown in Settings.

    maxLen Optional. Specifies the desired size when receiving a byte array or a string. If this parameter is
    missing for byte array or string, all available data will be retrieved. If provided for data types
    other than byte array and string, this parameter is ignored.


Sign In or Register to comment.