Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Probs inserting data at a bookmark
Message
From
09/01/2019 21:24:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/01/2019 21:19:10
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01665236
Message ID:
01665252
Views:
43
>Hi Cetin,
>
>Yes it is - my .GetBookmark() method checks both that .Count > 0 for the bookmarks first and the .Exists as the next test. Somehow after that point it fails.
>
>Albert
>
>
>>And, all this code is wrapped with a if Bookmarks.Exists ? If not, try adding it. You wouldn't be able to read a non-existent bookmark's range.
>
>>>
>>>
>>>* get a reference to the bookmark
>>>
>>>loBookmark = THIS.GetBookmark(lcBookmarkName,toDocument)  && method of class that error traps etc
>>>
>
>
But there you don't seem to have null check. Maybe because it is a pseudocode. You might get some info, google searching that exact message. I have similar code and I haven't heard an error yet.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform