[futurebasic] How do I tell if a edit field is empty

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2007 : Group Archive : Group : All Groups

From: Brian Heibert <heibert@...>
Date: Sat, 19 May 2007 21:38:37 -0500
How do I tell if a edit field is empty

I am using linestr = edit$(efID, i )  to get the lines of text in my edit field

Heres some stuff after that linestr

linestr = edit$(efID, i )    ' get the complete instruction as before

' ------- add these three lines ----------
linestr2$ = linestr + " "       ' ensure there's at least 1 space.
positionOfSpace = INSTR( 1, linestr2$,  " " )
keyWord$ = UCASE$(  LEFT$( linestr2$, positionOfSpace - 1 )  )
//restOfCommand$ = RIGHT$( lineStr, positionOfSpace + 9 )
restOfCommand$ = MID$( lineStr, positionOfSpace + 1 )


Brian