Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning buttons for msgsvc during runtime.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00385748
Message ID:
00386240
Views:
24
Depending on the version you have...

For a MsgSvc dialog with "Eat" "Sleep" "Sports" buttons:
m.Ratface= "Eat;Sleep;Sports"
MSGSVC("Whatever")
MsgSvc Record (note the curly braces, which work pretty much everywhere in MsgSvc):
cKey: "Whatever"
cFunction: "{{m.Ratface}}"

Does Vulcan make hockey pucks?

**--** Steve



>How is the best way to assigns buttons during run-time for a message service.
>
>Here are 2 solutions I have thought of.
>
>(1)Do a seek, then do a replace on the cFunctions field for the cKey you need to dynamically change.
>
>(2)Specify two almost exact messages.
>
>I thought maybe I could pass it in as a param or something or maybe use %C1% but this won't work.
>
>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform