>Hi ahmad,
>you are using the wrong sintax again
>After you issue your regfn don't worry about the Gkey value for now,
>buy looking at your sintax I can say that you are not using it the right
>way, in your Regfn you said that your function will accept an "integer"
>value and then it will return another integer, and you are doing four things wrong, first you are trying to send a string, 'Sysmenu', second
>you are trying to send it in a wrong way,third you can't register
>and call the function in the same command, and looking again at
>the function that you are trying to call it accept two parameters and
>return one logical,(in your case integer), value, you have to figure out
>what kind of parameters are 'hmenu' and 'frtol', that is, are they
>character,integer,logical,etc..
>assuming that 'hmenu' is character type and 'frtol' is an integer
>I guess that what you would like to do is something like this:
> Gkey=Regfn("MakeMenuRtoL","CI","I","c:\windows\system\user.exe")
>(note that now the function is registered to accept a caracter "C")
>and then call your function with
>myReturn=callfn(Gkey,'sysmenu',2).
>Got it?
Luis Hi,
I tried it but it does not work... my code was ...:
Gkey=Regfn("MakeMenuRtoL","CI","I","c:\windows\system\user.exe")
MyReturn=Callfn(Gkey,"symenu",2)
I expcted the FoxPro menu bar to be alinged from right to left but there was no change on the menu, although no syntax error. nothing at all !!
Note:
I got another opinion from Mr. Arnon, and I forwarded a copy to you I hope you don't mind...
Ahmad
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>