Hi Sven,

Could someone point me to the correct usages of StrCmp in StarBasic?
With:
strcmp(s1,s2)

that is a typo I suppose.

I get the following error:

"Basic syntax error. Symbol StrComp already defined differently."

But where is it defined?

StrComp is a basic-runtime function and something like

    s1 = "openoffice.org"
    s2 = "writer"
    s3 = "openoffice.org"
    msgbox strcomp(s1,s2) '-1
    msgbox strcomp(s2,s1) '1
    msgbox strcomp(s1,s3) '0

works just fine for me.

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to