Thanks Martin. Do you know if Native Code runs slower/faster/the same as P-Code?
-----Original Message----- From: Martin Scholl [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 11:24 AM To: [EMAIL PROTECTED] Subject: RE: [U2] [ud] UniObjects Dynamic Array Type Mismatch only in .exe On VB6 there is an issue with the 'Compile to Native Code' option and UniObjects. Code that beautifully works in design mode, crashes in the exe. You have to 'Compile to P-Code' and your code will work. BTW, I also append ".stringvalue" after each reference to an attribute, a value or a subvalue. I am curious to check out UniObjects.NET. Martin Scholl President Martin Scholl Consulting, Inc. http://www.hipaasuite.com/ mailto:[EMAIL PROTECTED] 18910 New Hampshire Ave Brinklow, MD 20862 301-924-5537 Phone 301-570-0139 Fax 301-613-9572 Cell -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Burwell, Edward Sent: Monday, August 23, 2004 12:18 PM 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/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
