I am calling a VB program from an AS400 using STRPCCMD. Has anyone ever heard of a VB program being able to accept parameters like the way that RPG uses *Entry? Thanks
Hi, While developing the VB program use the command() function to recieve the parameters. Parameters are seperated by spaces. In this case make sure you do not create EXE name with space inbetween. at the start of the program use a string variable to capture the parameters. for example dim ParmsRcd as string ParmsRcd=command To test this right click the project name in the project explorer in VB and in the project properties give the parameters in the commandline parameters and run the project step by step. You get the parameters. For example you want to get the paramters into an array do like below. dim ParmAry() as string ParmAry=split(command()," ") This will give you the array of parameters. Hope this solves your issue. RV rv_ooty@hotmail.com
Comment