#1 Re: mORMot 1 » Project opens in full window and cannot resize » 2022-09-26 00:22:32

No - it used to open as window and not take the whole screen, now it takes the whole screen and cannot be resized, the only way to close it now is from the Windows status bar by right-clicking close window. Not sure what happened I probably checked some wrong box in the build options..

Thanks!

#2 Re: mORMot 1 » Member not found » 2022-09-23 16:12:41

I printed the exception type and message, saying -

EOleSysError raised, with message: Member not found

Does this give us any clue?

Thanks

#3 Re: mORMot 1 » Member not found » 2022-09-23 15:56:44

Yes, not my code but trying to understand and debug -

xlWorksheet   : oleVariant;

////

xlValues[numCol]:=oleVariant(UTF8toUTF16(lTable[numRow][numCol]));

////

xlRange:=oleVariant('A'+intToStr(numRow+1)+':'+colNumToColStr(nbCols)+intToStr(numRow+1));

when I print xlRange it seems ok, xlValues cannot be printed out - seems like some kind of array.

#4 mORMot 1 » Member not found » 2022-09-23 14:46:44

udihamudi
Replies: 5

Hi All,

Getting the above error message for the following line of code -

xlWorksheet.Range(xlRange).Value:=xlValues;


Any ideas?

Thanks!

#5 mORMot 1 » Project opens in full window and cannot resize » 2022-09-20 18:49:41

udihamudi
Replies: 3

Hi!

This project used to open in a medium size window and I could drag it, resize it, close it etc. I am not sure what happened but now its running on full screen and I cannot resize, close etc I don't even see the border - to close it I have to right click on the Windows status bar icon and select "Close window"

Any idea how to revert it to window?


Thanks!

#6 Re: mORMot 1 » Getting "No variant method call dispatch" » 2022-09-20 17:53:23

The window that the application runs now takes the full screen sad and I cannot resize, close etc.

#7 Re: mORMot 1 » Getting "No variant method call dispatch" » 2022-09-20 17:39:40

Ok got it to work, thanks!!!

Another quick unrelated question, I must have clicked the wrong checkbox somewhere smile  the form now takes the full screen and I cannot resize it or close it, any idea what I can do to revert to normal window?

Thanks!

#8 Re: mORMot 1 » Getting "No variant method call dispatch" » 2022-09-20 17:07:48

NVM I think it passed this line smile now the error is for different line... thanks!!

#9 Re: mORMot 1 » Getting "No variant method call dispatch" » 2022-09-20 16:48:43

Hi,

Sorry it keeps giving me same error, "No variant method call dispatch". Here is the code before this line, that works just fine. I also put breakpoint and I am  getting data back, I see I have data for row 0 ( I get only one row) -

  jData:=_Json(response);

  if (jData._Count=0) or (jData.Name(0)<>'result') then
     exit;

  jItems:=jData.result; 


  jItem := _Safe(jItems)^.Values[0];   // this line still throw the error

Thanks!

#10 Re: mORMot 1 » Getting "No variant method call dispatch" » 2022-09-20 16:21:12

Thanks!

When I use it I get the following -

    jItem := _Safe(jItems._(numRow));


olirestutils.pas(192,14) Error: Incompatible types: got "PDocVariantData" expected "Variant"

Any ideas...

#11 Re: mORMot 1 » Getting "No variant method call dispatch" » 2022-09-20 13:53:33

Hi! I managed to narrow down the line that causes the error -
    jItem:=jItems._(numRow);   

Any ideas? maybe need to cast to integer?

/////
In the debugger it shows the following -
000000010009B1F9 488B0598621900           mov rax,[rip+$00196298]

I added breakpoint and the jItems seems to be populated with 5 elements

#12 Re: mORMot 1 » Getting "No variant method call dispatch" » 2022-09-17 16:08:10

Thanks for the response! it's fpc 3.2.2.

I have seen an answer to similar issue on the following thread -
https://synopse.info/forum/viewtopic.ph … 187#p38187

But I cannot find a similar value conversion in my code to match the answer to the above thread.

Regretfully it's company code so I am not sure I can share it, but I will ask if I can.

I wish there was a simple way to print the source code line that throws this error but I guess it's not possible from the answers here ....

#13 mORMot 1 » Getting "No variant method call dispatch" » 2022-09-16 14:32:04

udihamudi
Replies: 12

Hello sorry I know its old thread - and I am completely new to Lazarus etc. so I am not even sure this thread is observed, anyhow I seem to have similar issue, the project compiles and starts fine, when I try to use it I get the an error "No variant method call dispatch." any idea where I start debugging it? Also, how can I debug it and see what source file and line the error comes from?

Thanks a lot!!

#14 Re: mORMot 1 » [Solved] No variant method call dispatch error (occurs in Lazarus/FPC) » 2022-09-16 14:22:46

Hello sorry I know its old thread - and I am completely new to Lazarus etc. so I am not even sure this thread is observed, anyhow I seem to have similar issue, the project compiles and starts fine, when I try to use it I get the an error "No variant method call dispatch." Is it the same issue as above? Also, how can I debug it and see what source file and line the error comes from?

Thanks a lot!!

Board footer

Powered by FluxBB