Is there a table or cursor with cMainKey defined as CHR(25)?
Looks like it to me, in which case you should put:
parameters m.cMainkey
(note the "m.") in your PARAMETERS statement.
good luck
>Can somebody help me I am really confused!!!!
>
>We are currently running a vendors software which you can invoke your own programs from. When I invoke my own program I pass a field as a parameter. I then use this parameter to run another program from which I can then run various options.
>
>In the vendors software the following runs my program:
>
>
>IF STYLESUM=alltrim('Export Costing')
> exportcost(workstyle.mainkey)
>ENDIF
>
>
>The value of workstyle.mainkey = "T59*AU04*NEIL6803T*TECHNICAL"
>
>My program exportcost then accepts the parameter for mainkey and then invokes a routine to run an external application
>
>
>LPARAMETERS cMainkey
>! /N U:\questpdm\costings.exe &cMainkey
>
>
>The value of mainkey = "T59*AU04*NEIL6803T*TECHNICAL"
>
>In the main form of my costings.exe program at the start I then accept the parameter i.e.
>
>
>parameters cMainkey
>
>
>The problem I have is that the value of mainkey is "T59*AU04*NEIL6803T*TECHN"
>
>Has anybody experienced the same kind of problem. Its chopping some characters off my mainkey when passing parameters. I am really confused!!!
>
>Any help would be greatly appreciated!
>
>Many Thanks