Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right Alignment !!! :(
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00013888
Message ID:
00015374
Views:
56
>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 <><>
<><><><><><><><><><><><><><><><><><><><>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform