开发者

Retrieiving random number from Prolog file in FLEX/Prolog Project

开发者 https://www.devze.com 2023-03-06 02:00 出处:网络
I am currently working on something in FLEX using LPA Win-Prolog. I need to generate some random numbers,开发者_Python百科 which is not possible using FLEX. According to one source I read, it\'s poss

I am currently working on something in FLEX using LPA Win-Prolog.

I need to generate some random numbers,开发者_Python百科 which is not possible using FLEX. According to one source I read, it's possible to create a prolog file inside the same project and use it the generate the random number and access it from the FLEX file. Apparently Ch.7 in this document is supposed to illustrate how to do this but I still can't figure it out.

If anyone has any experience using Flex and prolog I'd really appreciate some help.

Let me know if you need any more information.


You can literally write LPA-prolog within a flex file. For example:

action run;
 do flash('Im flex') and
 write('Well, im prolog!')
.
0

精彩评论

暂无评论...
验证码 换一张
取 消