[V4MD] loaddump finished

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Jun 7 01:28:01 CDT 2003


on 6/6/03 12:13, Henning Pertiet at valentina at pertiet.de wrote:

>>>>> I am making a loaddump within an application (e.g. I am in the
>>>>> progress...)
>>>>> The docs say that loaddump returns nothing.
>>>>> Is there any way other than checking wether Director is idle or not,
>>>>> to see if loaddump was a) finished and b) finished successfully?
>>> 
>>>> As far as I understand it is finished when you have get control back.
>>> 
>>> You mean, as soon as Directors playhead keeps moving on?
> 
>> Yes.
> 
>> As I know calls of Lingo methods are not asynchronous.
>> So if you have return from method, then Dump is finished.
> 
> I am still having the problem that my way of making loadDump doesn't
> work.
> I need to loadDump 5 xml-files in one turn, so that no user action is
> required.
> Thought I could just do it this way:
> 
> on makeDBs
> ListDBs = ["sorten","adress","berichte","mittel","literatur"]
> numberItems = ListDBs.count
> repeat with i = 1 to numberItems
>   currentItem = ListDBs[i]
>   loadDump currentItem
> end repeat
> end
> 
> on loadDump currentItem
> put currentItem
> LoadDump( gExportDataBase, the moviepath & currentItem & ".xml", the moviepath
> & currentItem & ".vdb", 2 )
> end
> 
> But this just makes one database (sorten).
> What is my mistake?
> (This probably is more a question of Director but somebody might
> know...)

Yes probably this is Lingo mistake.
But have you try step in the debugger ?!
I think you need to do this in first turn.


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list