Search found 78 matches

by wee wullie
Wed May 14, 2014 10:36 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Strange behaviour with string!
Replies: 3
Views: 4251

Re: Strange behaviour with string!SOLVED!

Hi, I solved the problem with:

Code: Select all

replace CR with "" in field "comments"
and it works fine.

I really should have thought about that one before I posted but many thanks anyway.
by wee wullie
Wed May 14, 2014 5:43 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Strange behaviour with string!
Replies: 3
Views: 4251

Strange behaviour with string!

Hi, I have a problem with a part of my code but this problem only occurs sometimes, I have a stack that updates an Excel file, this stack gets its data from my main stack, basically what happens is this: rs("Comments") = "This person has demonstrated a very high level of skill and determination to c...
by wee wullie
Fri Dec 27, 2013 3:03 pm
Forum: Talking LiveCode
Topic: problem with excel - vbscript
Replies: 8
Views: 6200

Re: problem with excel - vbscript

Hi Sparkout, I didn't see your post, so I used this method instead: put "rs(" & QUOTE & "First" & QUOTE & ")" & " " & "=" & " " & QUOTE & fld "First" & QUOTE into tFirst put tFirst into line 15 of tScript i works perfectly and it does pretty much the same thing as your post, it just goes about it in...
by wee wullie
Fri Dec 13, 2013 10:56 am
Forum: Talking LiveCode
Topic: problem with excel - vbscript
Replies: 8
Views: 6200

Re: problem with excel - vbscript

Hi Sparkout, zryip theSlug - yeah, I have an ADO vbscript to write to excel and it works fine from my vbs editor, the problem is that i'm trying to use the replace fld "First" with fld "First" in tScript as i do in access, however the field in the script has rs.("first"), is there a way to lose the ...
by wee wullie
Sun Sep 29, 2013 7:19 pm
Forum: Talking LiveCode
Topic: problem with excel - vbscript
Replies: 8
Views: 6200

Re: problem with excel - vbscript

Sparkout, you're a star!, works perfectly both sending to and receiving from,
VERY MANY THANKS INDEED!!!

kindest regards

WeeWullie
by wee wullie
Sun Sep 29, 2013 10:41 am
Forum: Talking LiveCode
Topic: problem with excel - vbscript
Replies: 8
Views: 6200

Re: problem with excel - vbscript

Hi Sparkout, i'm trying to test the code from Ken Rae's awesome Sonsothunder site, for sending to and getting from excel, i am probably missing something obvious here, i have attached the rev file as follows:
XLtest.rar
send2/getFromXLtest
(1.5 KiB) Downloaded 355 times
any help would be very appreciated.

Kind regards
WeeWullie
by wee wullie
Sun Sep 22, 2013 6:02 pm
Forum: Talking LiveCode
Topic: problem with excel - vbscript
Replies: 8
Views: 6200

problem with excel - vbscript

I'm trying to use the excel vbscript from Ken Rae's http://www.sonsothunder.com/devres/revo ... iac001.htm site,

i get an error when i test it, does anyone know if this code needs to be updated?
by wee wullie
Sun Sep 08, 2013 12:11 pm
Forum: Talking LiveCode
Topic: Exporting more than one line of text in a fld
Replies: 8
Views: 6542

Re: Exporting more than one line of text in a fld

Indeed it certainly was Klaus :oops:

its good that you can use both methods, transcript is very flexible, i love it!!!

cheers Klaus
by wee wullie
Sun Sep 08, 2013 10:27 am
Forum: Talking LiveCode
Topic: Exporting more than one line of text in a fld
Replies: 8
Views: 6542

Re: Exporting more than one line of text in a fld

Hi Klaus, i tried to use this: on mouseUp open stack "FTdoc" put "FTr" && "--" && fld "firstname" of stack "FTDoc" && fld "lastname" of stack "FTDoc"into fld "Subject" of stack "myStack" put urlencode( "TrType:" && the selectedText of btn "TrType" of stack "FTDoc" & cr & "TkType:" && the Text of fld...
by wee wullie
Sat Sep 07, 2013 5:29 pm
Forum: Talking LiveCode
Topic: Exporting more than one line of text in a fld
Replies: 8
Views: 6542

Re: Exporting more than one line of text in a fld

Hi Klaus, i tried to use urlencode for the entire string and just the variable and it doesn't seem to work, this is the string: put "Tr Type:" && the selectedText of btn "TrType" of stack "myStack" & cr & "Tk Type:" && the Text of fld "TkType" of stack "myStack" into tParr perhaps i'm missing someth...
by wee wullie
Sat Sep 07, 2013 4:18 pm
Forum: Talking LiveCode
Topic: Exporting more than one line of text in a fld
Replies: 8
Views: 6542

Exporting more than one line of text in a fld

I am trying to export text from a stack to a vb file , one of the fields has two lines of text in it, the problem is that when i try to send the data both lines are included in the string, starting and ending with a " but because i use a cr to put it into two lines it wont send it, i need each line ...
by wee wullie
Fri Sep 06, 2013 10:59 am
Forum: Talking LiveCode
Topic: function to get MM-DD-YY
Replies: 18
Views: 13005

Re: function to get MM-DD-YY

Nice 1 Bernd, that works perfectly, and thanks to all, i have attached
DateA.rar
(5.12 KiB) Downloaded 329 times
the date picker i use, as i said in an earlier post this date picker was originally on revonline by Marty and was subsequently modified by BVG, i use it in lots of stacks and it works well.

king regards

wee
by wee wullie
Fri Sep 06, 2013 12:44 am
Forum: Talking LiveCode
Topic: function to get MM-DD-YY
Replies: 18
Views: 13005

Re: SOLVED function to get MM-DD-YY

Hi everyone, i managed to solve my problem by dissecting the system date and re-arranging char by char and removing the first 2 digits of the year item, the code i used is thus: put text of fld "Date1" into tDate put char 4 to 5 of tDate & "/" & char 1 to 2 of tDate & "/" & char 9 to 10 of tDate int...
by wee wullie
Fri Sep 06, 2013 12:30 am
Forum: Talking LiveCode
Topic: function to get MM-DD-YY
Replies: 18
Views: 13005

Re: function to get MM-DD-YY

Try this in a button script: on mouseUp put getDayOfWeek(the date) into tDay answer "Today is:" && item tDay of "Sun,Mon,Tue,Wed,Thu,Fri,Sat" end mouseUp function getDayOfWeek var convert var to dateItems return item 7 of var end getDayOfWeek Set a breakpoint at the "on mouseUp" line, and "step int...
by wee wullie
Fri Sep 06, 2013 12:23 am
Forum: Talking LiveCode
Topic: function to get MM-DD-YY
Replies: 18
Views: 13005

Re: function to get MM-DD-YY

Hi wee, to use what Klaus did in his function and put it into a mouseUp handler here is what works for me. on mouseUp put text of fld "Date1" into tDate set the itemDelimiter to "/" -- this lets you treat a slash as itemDelimiter put item 2 of tDate into item 1 of tDestFormat -- items are automatic...