Hi a while back I posted a Keynote Label object in the freebie bit of the forum.
I would like to improve it but I'm getting stuck trying to use the SPLIT command. A bit annoying as I used it quite easily with my metal stud object.
What I'm trying to do is allow the user to make a selection from a pop up list of possible notes that he/she/it can choose from. I only want the first two digits of the selected note as that then tells the script which note to use.
The Notes look like this....
"01 Internal lining system comprising two layers",
"02 Weatherproof internal lining system comprising",
"03 Secondary steelwork to Engineer's detail WP220",
"04 Stone rainscreen cladding incorporating ",
"05 Black tissue faced mineral wool insulation WP325",
"06 Standard pressure capped PPC finished",
"07 Structural silicone glazing comprising extruded",
"08 Shopfront glazing comprising extruded",
"09 Shuffle glaz.... etc etc
In the Master script I have this...
knserial = SPLIT (kncon, "%s" , knselec)
knoteref = knselec
kncon is a parameter that the Parameter Script uses to give the user a list of possible notes to choose from
In the 2d script I have this
IF knoteref = "01" THEN GOSUB 101
IF knselec = "02" THEN GOSUB 102
IF knselec = "03" THEN GOSUB 103
IF knselec = "04" THEN GOSUB 104
IF knselec = "05" THEN GOSUB 105
but I get an error saying
Incompatible expression at line 153
I've tried getting it to extract it as a numerical expression and and as a string expression but I still get the error.
Any help would be much appreciated
AC versions 3.41 to 25 (UKI Full 5005).
Using AC25 5005 UKI FULL
Mac OSX 10.15.7 (19G2021) Mac Pro-2013 32gbRam AMD FirePro D500 3072 MB graphics