Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help with textbook example (Calculation Limits)

Hello everyone,

I recently got a problem following QlikView API Guide.

In particular I can't make some code example work.

Here is the code:

set chart = ActiveDocument.GetSheetObject("CH62")

set cl = chart.GetCalculationLimits

cl.MemoryLimit = cl.MemoryLimit * 2

chart.setCalculationLimits cl

I copied it from QV API Guide.

What I expect it to do is to double memory limits for my pivot chart. I need it since I'm getting annoying "allocated memory exceeded" error when trying to add dimensions to it via VB macro.

What this code actually does is opens Edit Module window with no errors at all.

Would you please point me where I am wrong?

Thanks in advance

1 Solution

Accepted Solutions
Not applicable
Author

Looks like I'm using QV11 and APIguide is for QV10 and API has changed between versions. It didn't solve "allocated memory exceeded" error, but at least I know why the example didn't work.

View solution in original post

1 Reply
Not applicable
Author

Looks like I'm using QV11 and APIguide is for QV10 and API has changed between versions. It didn't solve "allocated memory exceeded" error, but at least I know why the example didn't work.