Arguement Error Conditional

Arguement Error Conditional

Postby deanomeano » Thu Jan 19, 2006 10:45 am

In my program, there is a listbox. when information in this list is doubleclicked the fields in the dialog box are updated. this works fine for all of them, exept for two places where a dbf field is shared between the two. I have used a PADL function, so that if the information in the field ends with .EXE then it will go to a preprocessor field, otherwise it will go to an invoice condition field. however, when i doubleclick the listbox i get an "arguement error conditional" message. Here is the code i use

CODE;

IF PADL(REPDETS->REP_FOR,3,"exe")
mPreProcessor := REPDETS->REP_FOR
ELSE
mInvCon := REPDETS->REP_FOR
ENDIF

Any ideas?

Thanks in advance
deanomeano
 
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am

Postby Antonio Linares » Thu Jan 19, 2006 10:57 am

Deano,

Try this:

IF Right(REPDETS->REP_FOR,3 ) == "exe"
...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby deanomeano » Thu Jan 19, 2006 11:03 am

Thanks Antonio, all seems ok now :D
deanomeano
 
Posts: 22
Joined: Wed Nov 09, 2005 9:43 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 88 guests