I am using an example on the aspectscripting website in reference to the dde to an excel spreadsheet.
this is an example from it
if ddeinit SystemVar "excel" "system"
ddeexecute SystemVar "[FULL(TRUE)]" ;Maximize the spreadsheet.
if ddeinit LinkVar "excel" "sheet1" ;Set up link to spreadsheet.
while 1 ;Loop forever.
strfmt sRowCol "R%dC%d" iRow iCol ;Format request for data from current row, column 1
dderequest LinkVar sRowCol szText ;Read data from spreadsheet, current row, column 1
pause 1
switch szText
case "y"
transmit "!y success"
endcase
case "n"
transmit "!n success"
endcase
default
transmit "!default selected"
endcase
endswitch
endwhile
The excel file just has the letter y in it and if i do a transmit sztext then it transmits Y.
Currently the default action is the only action that responds.
What do i need to change, to have it properly examine the contents of the cell and then exact a reponse based on the cells contents?
I appreciate any help or guidance with this.
this is an example from it
if ddeinit SystemVar "excel" "system"
ddeexecute SystemVar "[FULL(TRUE)]" ;Maximize the spreadsheet.
if ddeinit LinkVar "excel" "sheet1" ;Set up link to spreadsheet.
while 1 ;Loop forever.
strfmt sRowCol "R%dC%d" iRow iCol ;Format request for data from current row, column 1
dderequest LinkVar sRowCol szText ;Read data from spreadsheet, current row, column 1
pause 1
switch szText
case "y"
transmit "!y success"
endcase
case "n"
transmit "!n success"
endcase
default
transmit "!default selected"
endcase
endswitch
endwhile
The excel file just has the letter y in it and if i do a transmit sztext then it transmits Y.
Currently the default action is the only action that responds.
What do i need to change, to have it properly examine the contents of the cell and then exact a reponse based on the cells contents?
I appreciate any help or guidance with this.