Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    3

    please. i need help??

    first: sorry for my bad language

    shortly. for example

    if i have 3 Buttons on my project

    it is possible??? when i click button 2.

    a code like this "File.Open("AutoPlay\\Docs\\222.txt", "", SW_SHOWNORMAL);"

    pasted to Button 1 on click action

    and
    when i click button 3.

    a code like this "File.Open("AutoPlay\\Docs\\333.txt", "", SW_SHOWNORMAL);"

    pasted to Button 1 on click action

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    "technically" the answer is no.
    but conceptually, yes.
    you just need to use variables to hold the file you wish to open in your button 3.. however, I think you need to take a step back and consider why you're being so jumbled in your approach.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684
    Quote Originally Posted by osamaelbazyehya View Post
    first: sorry for my bad language

    shortly. for example

    if i have 3 Buttons on my project

    it is possible??? when i click button 2.

    a code like this "File.Open("AutoPlay\\Docs\\222.txt", \"\", SW_SHOWNORMAL);"

    pasted to Button 1 on click action

    and
    when i click button 3.

    a code like this "File.Open("AutoPlay\\Docs\\333.txt", "", SW_SHOWNORMAL);"

    pasted to Button 1 on click action
    Technically, yes.

    Code:
    Page.SetObjectScript("Button3", "On Click", "File.Open(\"AutoPlay\\Docs\\333.txt\", "", SW_SHOWNORMAL);");
    Adapt it to your own needs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts