Have you tried a CInt around the dArray.Value(2,1). I'm guessing that
the dynamic array object stores everything as strings or variants.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Burwell, Edward
Sent: 23 August 2004 17:18
To: '[EMAIL PROTECTED]'
Subject: [U2] [ud] UniObjects Dynamic Array Type Mismatch only in .exe

Please give me your advice.  For example:

---------------------------------------------

        Dim iNumber as Integer
        Dim dArray As UniDynArray
        Set dArray = New UniDynArray

10:   dArray.Value(1,1) = "Some String"
40:   dArray.Value(2,1) = 50

70:   dArray.Value(2,1) = dArray.Value(2,1) + 25

90:   iNumber = dArray.Value(2,1)

----------------------------------------------

This is a silly example, but it illustrates the problem that I am
experiencing.  Then I run this in the design environment, it runs fine.
When I create an .exe and run it, it bombs on line 90 with an Type
Mismatch
error (error 13).

What am I doing wrong?
Has anyone else experienced this?

UniData 5.2
UniObjects 5.2
VB 6.0 SP5
uniobjects.dll (236KB) is version 3.1.3.1084  (product version 3.1.2)
and is
dated 12/11/2001

Thanks in advance.

Ed Burwell
[EMAIL PROTECTED]
973.361.5400 x1512
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


The information contained in this email is strictly confidential and for the use of 
the addressee only, unless otherwise indicated. If you are not the intended recipient, 
please do not read, copy, use or disclose to others this message or any attachment. 
Please also notify the sender by replying to this email or by telephone +44 (0)20 7896 
0011 and then delete the email and any copies of it. Opinions, conclusions (etc.) that 
do not relate to the official business of this company shall be understood as neither 
given nor endorsed by it.  IG Markets Limited and IG Index Plc are authorised and 
regulated by the Financial Services Authority and, in Australia, by the Australian 
Securities and Investments Commission.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to