Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT statement
Message
From
10/01/2007 11:24:34
 
 
To
10/01/2007 11:09:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01184224
Message ID:
01184234
Views:
13
>Hi All,
>
>I have this old code and I wanted to convert it. I have converted it as shown below. Please help.
>
>
>* Old Code...
>DO WHILE !EOF( )
>  C = RT1.RECNUM_55
>  R = CCRejectReasons.REASON
>  Skip
>  DO WHILE C = RT1.RECNUM_55
>    R = R + CHR( 13 ) + CCRejectReasons.REASON
>    Skip
>  ENDDO
>  INSERT INTO RT4( RECNUM_55, REASON ) VALUES( C, R )
>ENDDO
>
>* Here is mine...
>SELECT ;
>  RT.RECNUM_55 As C, ;
>  CHR(13) + CC.REASON As R ;
>FROM RT1 RT, CCRejectReasons CC ;
>INTO CURSOR RT4
>
>
>Thanks,
>Sam

It shouldn't be done with SELECT. Use SCAN.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform