You are not logged in.    Login    New User    Forum Home    Search

JBPLAY  \  Meteor 2  \  Editing  \  String Comparison?

Back to Threads

Viewing Thread: String Comparison?


Zable Fahr

Joined: 04 November 2004
Posts: 74
14 November 2004 21:24 (UK time)

I'm trying to make a custom script procedure that works like a password box (i.e. pop up an input box, ask for a string, then compare it to a predefined string). I have no problem making the input box display and everything, but I can't figure out what code I need to compare two strings. I've tried the == operator, but that gives some sort of code generation error. Since strcpy is a command, I thought strcmp would be a command too, but it's undefined. So is there any way to compare strings? Or if not, are there plans to add one?

You need to login to create posts in this thread.

James Bunting
Joined: 17 September 2003
Posts: 1308
16 November 2004 07:48 (UK time)

You are quite right.

strcmp compares 2 strings
stricmp compares 2 strings without case sensitivity

The problem is that I have not exported these functions (I need to export all functions that the script can use). Its simply a matter of doing this for the next beta version.


You need to login to create posts in this thread.

Forums system (C) 1999-2023 by James Bunting.

Terms of Use