> 1) comparing LStrings textually. I thought I saw a built in method
> before, but now i don't. All I came up with is
>
> if(lstringA.c_str() < lstrincB.c_str())
This is no good. You are comparing the pointers, not the contents. You
have to use "strcmp". Try "man strcmp".
> 2) getting numbers out of them.
> I need to be able to turn the LString contianing 5 into an int. I have
> *absolutely* no idea to do this with c or LStrings. I assume there's
> som val() type of function in c, but how do i do this?
Hmm, what's the name of that one.. Try "man -k int | grep str | less".
> 3) closign a buffer.
> I try
>
> if (!bufferlist.exists(datafilename))
>
owner.currentView()->setBuffer(bufferlist.loadLyXFile(datafilename));
I suspect this is wrong, but I haven't checked.
I'm not sure you are supposed to load a buffer in this way. I think this
might be the cause of your problems.
Greets,
Asger