Passing an array variable/values to procedure (delphi script)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2018
01:17 AM
07-10-2018
01:17 AM
Passing an array variable/values to procedure (delphi script)
Hello
I have a procedure which has input parameter OleVariant.
For example procedure doSomething( p:OleVariant);
How is the easiest way to initialize an array and pass to the procedure.
I've tried to initialize dynamically the variable located at Variable List (object)
as one-dimensional array CreateVariantArray(0, 2), and afterward to declare values.
It doesn't work. I got error type mismatch at line: 'CreateVariantArray(0, 2)'
Also it couldn't automatically generate array on call doSomething ([1,2,3,4,5])
Any ideas?
Thank you.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018
05:07 PM
07-12-2018
05:07 PM
What are you trying to test with this? Perhaps we can find you an easier way to do it.
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
